-
Notifications
You must be signed in to change notification settings - Fork 77
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
no-merges: match titles instead of labels #1720
Conversation
f8d45c0
to
a27cc0f
Compare
triagebot exclude_labels -> exclude_titles rust-lang/triagebot#1720
disable no-merges check for now It leads to false warnings on sync PRs until rust-lang/triagebot#1720 lands.
triagebot exclude_labels -> exclude_titles rust-lang/triagebot#1720
if config | ||
.exclude_titles | ||
.iter() | ||
.any(|s| event.issue.title.contains(s)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason to not make this case-insensitive? Seems like making it insensitive could make it a little less likely to have false-positives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obviously it makes the implementation more complicated, but the real reason is that it reduces specificity.
Capitalization can be used to disambiguate. For example, on rust-clippy
, using the capitalized "Rustup" disambiguates between PRs updating from rust
and ones just mentioning "rustup"
Since only the first letter in a word is capitalized, generally it only takes a couple more entries to exclude the various combinations if so desired.
triagebot exclude_labels -> exclude_titles rust-lang/triagebot#1720
disable no-merges check for now It leads to false warnings on sync PRs until rust-lang/triagebot#1720 lands.
126cac5
to
f106af7
Compare
also don't re-add labels if they're manually removed labels are not always set atomically when opening a PR example: rust-lang/miri#3059
f106af7
to
7fb447a
Compare
…ip1995 triagebot no-merges: exclude "Rustup"s, add labels rust-lang/triagebot#1720 changelog: none
triagebot: re-enable merge commit check rust-lang/triagebot#1720 has landed. Also make the keyword "Rustup", which is what we've been already using for such PRs for a while. Just adjust the bot to also put that in the title.
triagebot: re-enable merge commit check rust-lang/triagebot#1720 has landed. Also make the keyword "Rustup", which is what we've been already using for such PRs for a while. Just adjust the bot to also put that in the title.
also don't re-add labels if they're manually removed
labels are not always set atomically when opening a PR example: rust-lang/miri#3059
Forge change: rust-lang/rust-forge#701