-
Notifications
You must be signed in to change notification settings - Fork 182
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
base: master
Are you sure you want to change the base?
Conversation
…ssue as a duplicate in the function to reject PRs.
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. |
@makyen No, I haven't done that. Is doing so required for this to be merged? |
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. |
I've tested this locally and was able to get it to work with some minor adjustments (left as review comments). See: https://chat.stackexchange.com/transcript/message/65714701#65714701 |
Tested this again: https://chat.stackexchange.com/rooms/154419/conversation/testing-pr10018 This checks out. Though I would recommend that you re-merge with master to keep this PR on the most up-to-date version. |
@Spevacus Merged with master. |
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.