Skip to content

Commit

Permalink
Issue #10: Adding links in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Jan 10, 2018
1 parent 4334fe2 commit 494a221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/xlr/CreateAndStartSubRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def process_variables(variables, updatable_variables):
while not asynch:
status = xlr_client.get_release_status(release_id)
if status == "COMPLETED":
print "Subrelease %s completed in XLR" % (release_id)
print "Subrelease [%s](#/releases/%s) completed in XLR" % (release_id, release_id)
break
if status == "ABORTED":
print "Subrelease %s aborted in XLR" % (release_id)
print "Subrelease [%s](#/releases/%s) aborted in XLR" % (release_id, release_id)
sys.exit(1)
time.sleep(5)

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/xlr/XLReleaseClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def create_release(self, release_title, release_description, variables, tags, te
check_response(xlr_response, "Failed to create release in XLR")
data = xlr_response.json()
release_id = data["id"]
print "Created %s in XLR" % release_id
print "Created [%s](#/releases/%s) in XLR\n" % (release_id, release_id)
return release_id

def start_release(self, release_id):
Expand All @@ -83,15 +83,15 @@ def start_release(self, release_id):
additional_headers={"Accept": "application/json",
"Content-Type": "application/json"})
check_response(xlr_response, "Failed to start release in XLR")
print "Started %s in XLR" % (release_id)
print "Started [%s](#/releases/%s) in XLR\n" % (release_id, release_id)

def get_release_status(self, release_id):
xlr_api_url = '/releases/' + release_id
xlr_response = self.http_request.get_request(xlr_api_url, additional_headers={"Accept": "application/json"})
check_response(xlr_response, "Failed to get release status in XLR")
data = xlr_response.json()
status = data["status"]
print "Subrelease [%s] has status [%s] in XLR" % (release_id, status)
print "Subrelease [%s](#/releases/%s) has status [%s] in XLR\n" % (release_id, release_id, status)
return status

def get_updatable_variables(self, template_id):
Expand Down

0 comments on commit 494a221

Please sign in to comment.