From 608fbffae52190f5c8e412f721ab48376e2fafeb Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 22 Apr 2020 23:39:59 +0100 Subject: [PATCH] Add description in deployed to in commit status --- bin/update_status_on_pr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/update_status_on_pr.py b/bin/update_status_on_pr.py index dcdd8aa4..f66af031 100644 --- a/bin/update_status_on_pr.py +++ b/bin/update_status_on_pr.py @@ -35,10 +35,11 @@ def update_pr_status_with_deployment(branch_name, commit_sha): :return: Response POST request to Github API """ sympy_bot_token = os.environ.get(SYMPY_BOT_TOKEN_VAR) + deployment_url = "https://%s-dot-sympy-gamma-hrd.appspot.com" % branch_name payload = { "state": "success", - "target_url": "https://%s-dot-sympy-gamma-hrd.appspot.com" % branch_name, - "description": "Deployment", + "target_url": deployment_url, + "description": "Deployed to version: %s" % branch_name, "context": "PR Deployment" }