Skip to content

Instantly share code, notes, and snippets.

@hemanth22

hemanth22/createIssue.sh Secret

Last active Nov 18, 2018
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@hemanth22 hemanth22 commented Nov 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.