Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command to allow rejecting a pull request as a duplicate #10018

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

gparyani
Copy link
Contributor

@gparyani gparyani commented Feb 7, 2024

Often, pull requests have to be closed as duplicates (such as if a privileged user watches or blacklists a keyword that has a pending PR by a non-privileged user, so that PR has to be procedurally rejected). Per policy, these are labeled with the "type: duplicate" label so that users searching through one's PR history can tell between PRs that are procedurally rejected for this reason and those that are actually rejected.

This code change adds the !!/reject-duplicate command, so that users who procedurally reject duplicate PRs don't have to go to the issue after the fact and apply the label manually: it can be done with one command.

chatcommands.py Outdated Show resolved Hide resolved
@makyen
Copy link
Contributor

makyen commented Feb 9, 2024

Has this code been tested by running it on a test SD instance in a chat room against a fork of the repository? If so, please provide a link to the chat room/start of test messages.

@gparyani
Copy link
Contributor Author

@makyen No, I haven't done that. Is doing so required for this to be merged?

@makyen
Copy link
Contributor

makyen commented Feb 23, 2024

Given that this is doing something on GitHub, which isn't necessarily easy to recover from something going drastically wrong and/or possibly causing permanent loss of some data, yes, there needs to be testing prior to merging/deploying. That doesn't mean that you have to do it, just that it needs to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants