dump the JSON we are going to submit to GH to create the issue
This commit is contained in:
parent
fb2f841867
commit
e02c655194
1 changed files with 21 additions and 19 deletions
|
@ -77,27 +77,29 @@ def issue(
|
||||||
status_description = 'has failing tests'
|
status_description = 'has failing tests'
|
||||||
else:
|
else:
|
||||||
status_description = 'no longer builds'
|
status_description = 'no longer builds'
|
||||||
|
request = json.dumps({
|
||||||
|
'body': maybe_delink(textwrap.dedent('''\
|
||||||
|
Hello, this is your friendly neighborhood mergebot.
|
||||||
|
After merging PR {}, I observed that the tool {} {}.
|
||||||
|
A follow-up PR to the repository {} is needed to fix the fallout.
|
||||||
|
|
||||||
|
cc @{}, do you think you would have time to do the follow-up work?
|
||||||
|
If so, that would be great!
|
||||||
|
|
||||||
|
cc @{}, the PR reviewer, and @rust-lang/compiler -- nominating for prioritization.
|
||||||
|
|
||||||
|
''').format(
|
||||||
|
relevant_pr_number, tool, status_description,
|
||||||
|
REPOS.get(tool), relevant_pr_user, pr_reviewer
|
||||||
|
)),
|
||||||
|
'title': '`{}` no longer builds after {}'.format(tool, relevant_pr_number),
|
||||||
|
'assignees': assignees,
|
||||||
|
'labels': ['T-compiler', 'I-nominated'],
|
||||||
|
})
|
||||||
|
print("Creating issue:\n{}".format(request))
|
||||||
response = urllib2.urlopen(urllib2.Request(
|
response = urllib2.urlopen(urllib2.Request(
|
||||||
gh_url(),
|
gh_url(),
|
||||||
json.dumps({
|
request,
|
||||||
'body': maybe_delink(textwrap.dedent('''\
|
|
||||||
Hello, this is your friendly neighborhood mergebot.
|
|
||||||
After merging PR {}, I observed that the tool {} {}.
|
|
||||||
A follow-up PR to the repository {} is needed to fix the fallout.
|
|
||||||
|
|
||||||
cc @{}, do you think you would have time to do the follow-up work?
|
|
||||||
If so, that would be great!
|
|
||||||
|
|
||||||
cc @{}, the PR reviewer, and @rust-lang/compiler -- nominating for prioritization.
|
|
||||||
|
|
||||||
''').format(
|
|
||||||
relevant_pr_number, tool, status_description,
|
|
||||||
REPOS.get(tool), relevant_pr_user, pr_reviewer
|
|
||||||
)),
|
|
||||||
'title': '`{}` no longer builds after {}'.format(tool, relevant_pr_number),
|
|
||||||
'assignees': assignees,
|
|
||||||
'labels': ['T-compiler', 'I-nominated'],
|
|
||||||
}),
|
|
||||||
{
|
{
|
||||||
'Authorization': 'token ' + github_token,
|
'Authorization': 'token ' + github_token,
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue