Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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