Skip to content

Commit 982fa68

Browse files
authored
Merge pull request #192 from joshtriplett/delegate-instructions
Add more instructions when delegating
2 parents c8f51b8 + 1e9d643 commit 982fa68

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

homu/comments.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,16 @@ class Delegated(Comment):
6969
params = ["delegator", "delegate"]
7070

7171
def render(self):
72-
message = ':v: @{} can now approve this pull request'
73-
return message.format(self.delegate)
72+
message = \
73+
':v: @{delegate}, you can now approve this pull request!\n\n' + \
74+
'If @{delegator} told you to "`r=me`" after making some ' + \
75+
'further change, please make that change, then do ' + \
76+
'`@{bot} r=@{delegator}`'
77+
return message.format(
78+
delegate=self.delegate,
79+
bot=self.bot,
80+
delegator=self.delegator
81+
)
7482

7583

7684
class BuildStarted(Comment):

0 commit comments

Comments
 (0)