-
Notifications
You must be signed in to change notification settings - Fork 13.3k
CI request: forbid @mentions in commit messages/descriptions #137990
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
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Bors already escapes @mentions in the PR description: rust-lang/homu#100 |
I think this should not be a CI step, rather something rustbot posts. Doing it as CI step would break things if an @mention accidentally ends up in another repo that is included as subtree due to said repo not having this CI step and then a subtree sync is attempted. |
Incidentally, I happen to be working on improving homu's escaping, because it overapproximates what GitHub considers a username. For example, punctuation handling is bad: Edit: I've submitted that here: |
I have taken the liberty to implemented such warning in triagebot (aka rustbot) in rust-lang/triagebot#1917. |
This PR enables the no-mentions in commits handler in triagebot. Documentation pending at rust-lang/rust-forge#827 Original motivation in rust-lang/rust#137990. changelog: add `[no-mentions]` in `triagebot.toml`
I would much appreciate it if a CI step was added that checks for and forbids
@mention
s being included in commit messages/descriptions.If such a commit is merged into the Rust repository, then you will receive an additional notification every single time this commit gets merged/replayed into any fork. It is incredibly frustrating, and can't be protected against (to my knowledge) by unfollowing the issue/PR as each merge consists of a completely new mention as far as Github is concerned, possibly from many different repositories. It is, essentially, an unintended spam amplification attack.
The text was updated successfully, but these errors were encountered: