Skip to content

Instantly share code, notes, and snippets.

@JanTvrdik
Last active June 6, 2016 19:25
Show Gist options
  • Save JanTvrdik/2425007 to your computer and use it in GitHub Desktop.
Save JanTvrdik/2425007 to your computer and use it in GitHub Desktop.
Add pull request to existing issue on github
curl -d "pull[base]={branch_in_project_to_pull_to}" -d "pull[head]={your_github_username}:{branch_you_want_to_merge}" \
-d "pull[issue]={issue_number}" \
-u '{your_github_username}:{your_github_password}' \
https://github.com/api/v2/json/pulls/{github_username_you_are_requesting_the_pull_from}/{project_you want_to_submit_pull_to}
@PetrP
Copy link

PetrP commented Apr 20, 2012

HEAD must be on the branch which contains the pull request.

@vojtech-dobes
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment