Skip to content

Commit e9681cd

Browse files
authored
Use html_url field instead of url (GH-17)
The `html_url` field takes us to the actual comment on GitHub. `url` field took us to an API JSON response.
1 parent d96e3c1 commit e9681cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backport/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def comment_on_pr(issue_number, message):
2020
headers=request_headers,
2121
json=data)
2222
if response.status_code == requests.codes.created:
23-
print(f"Commented at {response.json()['url']}")
23+
print(f"Commented at {response.json()['html_url']}")
2424
else:
2525
print(response.status_code)
2626
print(response.text)
@@ -36,4 +36,4 @@ def is_cpython_repo():
3636
subprocess.check_output(cmd.split(), stderr=subprocess.STDOUT)
3737
except subprocess.SubprocessError:
3838
return False
39-
return True
39+
return True

0 commit comments

Comments
 (0)