Skip to content

Commit

Permalink
Merge pull request #18466 from jpmcmu/HPCC-31397
Browse files Browse the repository at this point in the history
HPCC-31397 Jirabot Cloud Jira Updates

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Mar 27, 2024
2 parents d277f05 + e3bc6fb commit 48503cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/jirabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ jobs:
result += updateIssue(jira, issue, jiraUser, transitionMap, jiraIssuePropertyMap, pull_url)
jira.issue_add_comment(issue_name, result)
result = 'Jira Issue: ' + jira_url + '/browse/' + issue_name + '\n\n' + result
# Escape the result for JSON
result = json.dumps(result)
curlCommand = 'curl -X POST %s -H "Content-Type: application/json" -H "Authorization: token %s" --data \'{ "body": %s }\'' % ( comments_url, github_token, result )
print(curlCommand)
os.system(curlCommand)
else:
print('Unable to find Jira issue name in title')
Expand Down

0 comments on commit 48503cf

Please sign in to comment.