/createIssue.sh Secret
Last active
November 18, 2018 07:18
Star
You must be signed in to star a gist
gitapissue.sh program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
body="{ \"title\": \"Travis Build no. $TRAVIS_JOB_NUMBER failure \", \"body\": \"Error code: $TRAVIS_TEST_RESULT \n\n JOB URL : $TRAVIS_JOB_WEB_URL\", \"labels\": [\"critical\"]}" | |
curl -i \ | |
-H "Authorization: token $TicketApi" \ | |
-d "$body" \ | |
https://api.github.com/repos/$TRAVIS_REPO_SLUG/issues |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Custom Link:
https://git.io/CreateIssue