Skip to content

Commit ef520bd

Browse files
Rollup merge of #107631 - BoxyUwU:triagebot_cargo_lock, r=compiler-errors
loudly tell people when they change `Cargo.lock` It keeps happening that people accidentally commit changes to `Cargo.lock` and then have to be told by a reviewer to undo this. I've also seen cases where PRs are merged that accidentally changed `Cargo.lock` during a rebase.. I figure that purposeful changes to `Cargo.lock` are likely rarer than these accidental ones?
2 parents 72599c6 + b83078f commit ef520bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

triagebot.toml

+8
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,14 @@ These commits modify **compiler targets**.
460460
[mentions."src/doc/style-guide"]
461461
cc = ["@rust-lang/style"]
462462

463+
[mentions."Cargo.lock"]
464+
message = """
465+
These commits modify the `Cargo.lock` file. Random changes to `Cargo.lock` can be introduced when switching branches and rebasing PRs.
466+
This was probably unintentional and should be reverted before this PR is merged.
467+
468+
If this was intentional then you can ignore this comment.
469+
"""
470+
463471
[assign]
464472
warn_non_default_branch = true
465473
contributing_url = "https://rustc-dev-guide.rust-lang.org/contributing.html"

0 commit comments

Comments
 (0)