@@ -86,7 +86,7 @@ def gh_url():
86
86
return os .environ ['TOOLSTATE_ISSUES_API_URL' ]
87
87
88
88
89
- def maybe_unlink (message ):
89
+ def maybe_remove_mention (message ):
90
90
# type: (str) -> str
91
91
if os .environ .get ('TOOLSTATE_SKIP_MENTIONS' ) is not None :
92
92
return message .replace ("@" , "" )
@@ -109,7 +109,7 @@ def issue(
109
109
else :
110
110
status_description = 'no longer builds'
111
111
request = json .dumps ({
112
- 'body' : maybe_unlink (textwrap .dedent ('''\
112
+ 'body' : maybe_remove_mention (textwrap .dedent ('''\
113
113
Hello, this is your friendly neighborhood mergebot.
114
114
After merging PR {}, I observed that the tool {} {}.
115
115
A follow-up PR to the repository {} is needed to fix the fallout.
@@ -285,7 +285,7 @@ def update_latest(
285
285
issue_url = gh_url () + '/{}/comments' .format (number )
286
286
response = urllib2 .urlopen (urllib2 .Request (
287
287
issue_url ,
288
- json .dumps ({'body' : maybe_unlink (message )}).encode (),
288
+ json .dumps ({'body' : maybe_remove_mention (message )}).encode (),
289
289
{
290
290
'Authorization' : 'token ' + github_token ,
291
291
'Content-Type' : 'application/json' ,
0 commit comments