Skip to content

Commit b10fca8

Browse files
committed
Explain how to modify S-* labels
Also split up message into multiple lines so it's more readable.
1 parent 2cf60aa commit b10fca8

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

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.\n\n*Note that reviewers usually do not review pull requests until merge conflicts are resolved!*'.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)