Skip to content

Instantly share code, notes, and snippets.

@hemanth22
Last active November 18, 2018 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemanth22/3b5d1dae822e95b3b7b30912e7b54a62 to your computer and use it in GitHub Desktop.
Save hemanth22/3b5d1dae822e95b3b7b30912e7b54a62 to your computer and use it in GitHub Desktop.
gitapissue.sh program
#!/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
@hemanth22
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment