Skip to content

Commit 5a4446b

Browse files
authored
Merge pull request #4472 from RalfJung/triagebot
triagebot: tweak welcome message
2 parents ebdb536 + bf3ed66 commit 5a4446b

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ When you get a review, please take care of the requested changes in new commits.
1919
existing commits. Generally avoid force-pushing. The only time you should force push is when there
2020
is a conflict with the master branch (in that case you should rebase across master, not merge), and
2121
all the way at the end of the review process when the reviewer tells you that the PR is done and you
22-
should squash the commits. If you are unsure how to use `git rebase` to squash commits, use `./miri
23-
squash` which automates the process but leaves little room for customization. (All this is to work
24-
around the fact that Github is quite bad at dealing with force pushes and does not support `git
25-
range-diff`. Maybe one day Github will be good at git and then life can become easier.)
22+
should squash the commits. (All this is to work around the fact that Github is quite bad at
23+
dealing with force pushes and does not support `git range-diff`.)
24+
25+
The recommended way to squash commits is to use `./miri squash`, which will make everything into a
26+
single commit. You will be asked for the commit message; please ensure it describes the entire PR.
27+
You can also use `git rebase` manually if you need more control (e.g. if there should be more than
28+
one commit at the end), but then please use `--keep-base` to ensure the PR remains based on the same
29+
upstream commit.
2630

2731
Most PRs bounce back and forth between the reviewer and the author several times, so it is good to
2832
keep track of who is expected to take the next step. We are using the `S-waiting-for-review` and

triagebot.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@ allow-unauthenticated = [
1616
# Enables assigning users to issues and PRs.
1717
[assign]
1818
warn_non_default_branch = true
19-
contributing_url = "https://github.com/rust-lang/miri/blob/master/CONTRIBUTING.md"
19+
contributing_url = "https://github.com/rust-lang/miri/blob/master/CONTRIBUTING.md#pr-review-process"
2020
[assign.custom_welcome_messages]
21-
welcome-message = """
22-
Welcome, and thank you for contributing to Miri!
23-
To ensure a smooth reviewing experience, please read https://github.com/rust-lang/miri/blob/master/CONTRIBUTING.md#pr-review-process.
24-
In particular, please do not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.
25-
"""
21+
welcome-message = "(unused)"
2622
welcome-message-no-reviewer = """
27-
Welcome, and thank you for contributing to Miri!
28-
To ensure a smooth reviewing experience, please read https://github.com/rust-lang/miri/blob/master/CONTRIBUTING.md#pr-review-process.
29-
In particular, please do not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.
23+
Thank you for contributing to Miri!
24+
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.
3025
"""
3126

3227
[no-merges]
@@ -49,6 +44,12 @@ remove = []
4944
add = ["S-waiting-on-author"]
5045
unless = ["S-blocked", "S-waiting-on-team", "S-waiting-on-review"]
5146

47+
[autolabel."S-waiting-on-review"]
48+
new_pr = true
49+
50+
[autolabel."S-waiting-on-author"]
51+
new_draft = true
52+
5253
# Automatically close and reopen PRs made by bots to run CI on them
5354
[bot-pull-requests]
5455

0 commit comments

Comments
 (0)