1
Fork 0

dump the JSON we are going to submit to GH to create the issue

This commit is contained in:
Ralf Jung 2019-06-21 13:46:46 +02:00
parent fb2f841867
commit e02c655194

View file

@ -77,9 +77,7 @@ def issue(
status_description = 'has failing tests'
else:
status_description = 'no longer builds'
response = urllib2.urlopen(urllib2.Request(
gh_url(),
json.dumps({
request = json.dumps({
'body': maybe_delink(textwrap.dedent('''\
Hello, this is your friendly neighborhood mergebot.
After merging PR {}, I observed that the tool {} {}.
@ -97,7 +95,11 @@ def issue(
'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(
gh_url(),
request,
{
'Authorization': 'token ' + github_token,
'Content-Type': 'application/json',