We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a3be4 commit 2976404Copy full SHA for 2976404
.ci/build.py
@@ -570,7 +570,11 @@ def comment_on_pull_request(comment):
570
pr_number = os.environ.get("TRAVIS_PULL_REQUEST")
571
slug = os.environ.get("TRAVIS_REPO_SLUG")
572
token = os.environ.get("GH_TOKEN")
573
- if all([pr_number, slug, token, comment]):
+ request_config = [pr_number, slug, token, comment]
574
+ for i in range(len(request_config)):
575
+ if request_config[i] == "false":
576
+ request_config[i] = False
577
+ if all(request_config):
578
url = 'https://api.github.com/repos/{slug}/issues/{number}/comments'.format(
579
slug=slug, number=pr_number)
580
response = requests.post(url, data=json.dumps({'body': comment}),
0 commit comments