Skip to content

Instantly share code, notes, and snippets.

@DaveCTurner
Created August 7, 2015 09:40
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 DaveCTurner/0614baa193da5880c99d to your computer and use it in GitHub Desktop.
Save DaveCTurner/0614baa193da5880c99d to your computer and use it in GitHub Desktop.
Using curl to add a PR to an issue
curl https://api.github.com/repos/vincenthz/hs-certificate/pulls \
-XPOST --data-binary '{"issue":57,"head":"DaveCTurner:issue-57","base":"master"}' \
-H"Content-type: application/json" -u DaveCTurner -H"X-GitHub-OTP: nnnnnn" # asks for password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment