Skip to content

Commit 0527db1

Browse files
authored
Merge pull request #101 from camelid/merge-conflicts-review-note
Add note about merge conflicts and reviews
2 parents 7e03320 + 71aa0da commit 0527db1

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/cfg.toml
44
/cfg.json
55
/homu.egg-info/
6+
/.eggs/
67
/main.db
78
/cache
89
*.pyc

homu/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h3>Commands</h3>
5656
<li><code>delegate=NAME</code>: Allow NAME to issue all homu commands for this PR.</li>
5757
<li><code>delegate+</code>: Delegate to the PR owner.</li>
5858
<li><code>delegate-</code>: Remove the delegatee.</li>
59-
<li><code>treeclosed=NUMBER</code>: Any PR below priority <code>NUMBER</code> will not test. Please consider if <i>you</i> really want to do this.</li>
59+
<li><code>treeclosed=NUMBER</code>: Any PR below priority <code>NUMBER</code> will not test. Please consider if you <i>really</i> want to do this.</li>
6060
<li><code>treeclosed-</code>: Undo a previous <code>treeclosed=NUMBER</code>.</li>
6161
</ul>
6262

homu/main.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,9 +1488,20 @@ def fetch_mergeability(mergeable_que):
14881488
_blame = ''
14891489
if issue_or_commit:
14901490
_blame = ' (presumably {})'.format(issue_or_commit)
1491-
state.add_comment(':umbrella: The latest upstream changes{} made this pull request unmergeable. Please resolve the merge conflicts.'.format( # noqa
1492-
_blame
1493-
))
1491+
state.add_comment(
1492+
':umbrella: The latest upstream changes{} made this '
1493+
'pull request unmergeable. Please resolve the merge '
1494+
'conflicts.\n\n'
1495+
'*Note that reviewers usually do not review pull requests '
1496+
'until merge conflicts are resolved!* Once you resolve '
1497+
'the conflicts, you should change the labels applied by '
1498+
'bors to indicate that your PR is ready for review. '
1499+
'Post this as a comment to change the labels:\n'
1500+
'```\n'
1501+
'@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author\n' # noqa
1502+
'```'
1503+
.format(_blame)
1504+
)
14941505
state.change_labels(LabelEvent.CONFLICT)
14951506

14961507
state.set_mergeable(mergeable, que=False)

0 commit comments

Comments
 (0)