Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Created September 16, 2013 17:25
Show Gist options
  • Save jameswhite/6583744 to your computer and use it in GitHub Desktop.
Save jameswhite/6583744 to your computer and use it in GitHub Desktop.
curl -X GET -H "Authorization: token ccccccoooooooooooooooccccccccccckkkkkkkk" https://api.github.com/repos/eftsource/cfengine/pulls/9
{
... returns PR data for PR #9 as unmerged...
}
curl -X POST -H "Authorization: token ccccccoooooooooooooooccccccccccckkkkkkkk" https://api.github.com/repos/eftsource/cfengine/pulls/9/merge
{
"message": "Not Found",
"documentation_url": "http://developer.github.com/v3"
}
curl -X PUT -H "Authorization: token ccccccoooooooooooooooccccccccccckkkkkkkk" https://api.github.com/repos/eftsource/cfengine/pulls/9/merge
<html><body><h1>502 Bad Gateway</h1>
The server returned an invalid or incomplete response.
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment