pull/10336/head
Craig Tiller 8 years ago
parent ab1c6c3b31
commit a61dce07a8
  1. 3
      tools/run_tests/python_utils/comment_on_pr.py

@ -39,7 +39,7 @@ def comment_on_pr(text):
return return
req = urllib2.Request( req = urllib2.Request(
url = 'https://api.github.com/repos/grpc/grpc/issues/%s/comments' % url = 'https://api.github.com/repos/grpc/grpc/issues/%s/comments' %
os.environ('ghprbPullId'), os.environ['ghprbPullId'],
data = json.dumps({'body': text}), data = json.dumps({'body': text}),
headers = { headers = {
'Authorization': 'token %s' % os.environ['JENKINS_OAUTH_TOKEN'], 'Authorization': 'token %s' % os.environ['JENKINS_OAUTH_TOKEN'],
@ -47,4 +47,3 @@ def comment_on_pr(text):
}) })
with urllib2.urlopen(req) as rsp: with urllib2.urlopen(req) as rsp:
print rsp.read() print rsp.read()

Loading…
Cancel
Save