-
Notifications
You must be signed in to change notification settings - Fork 81
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 no GitHub mentions in commits handler #1917
base: master
Are you sure you want to change the base?
Conversation
If this is intended to go in rust-lang/rust, then I think this would need approval from the primary teams that would be affected there (mainly compiler and libs I'm thinking), but I imagine would transitively also be required for all subtree teams, or otherwise it seems like it would be quite noisy. It's also not clear to me that "need to be removed" is not true, as I don't see anything that would prevent it. I'd also say that this doesn't seem to cover the PR description which I think is the more common culprit. However, that will conflict with I have a slight worry that this will be too overbearing. |
Sure, this would need buying from subtree first.
I think this is in part already handled by mentions being escaped in homu: rust-lang/homu#100 Non-homu handled repositories would still have this issue, but I think PR description are not as bad as commit messages. I have rarely see people link merge commit (where the PR description end up), while it's much more common for individual commits IMO to be copied.
It's the same generic message as the one regarding merge commits not being allowed, which is also not enforced, particularly for subtrees.
As proposed it's limited it to commit message, which hopefully will make it near invisible to most people. |
The implementation looks good to me. It omits some functionality of Same as with |
We should probably ignore the draft state. That's a good observation. Excluding some titles seems a bit much, we can add it later if necessary. Regarding the multiple load of commits, see my response in #1901 (comment).
Agree with you, it's only a warning, it's not blocking in anyway. I also want to deploy the handler in subtrees first, so it shouldn't be a problem in practice. |
This PR implements a no-mentions in commits handler. This is so that people are not spammed by GitHub when someone pushes a commit with their GitHub handle in it.
This is coming from rust-lang/rust#137990. I should note that I also have been annoyed by that in the past.
The implementation is heavily inspired by the
[no-merges]
one.The warning is gated behind the
[no-mentions]
config and produces such warning:r? @ehuss