Skip to content

Instantly share code, notes, and snippets.

@elalemanyo
Created September 21, 2020 10:11
Embed
What would you like to do?
Deploy to travis
body='{
"request": {
"branch":"master"
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token [travis token]" \
-d "$body" \
https://api.travis-ci.com/repo/[repo url]/requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment