GitHub currently doesn't provide a way to convert an issue to a pull request in their interface. However, the capability exists in their Pull Request API.
Update
I've built a self-hostable webapp called gh-i2p that makes this process easier.
To call the API using a simple curl
command, run the command:
1 2 3 4 |
|
For example, to make user1
change issue 13 into a pull request to merge branch test_branch
into
master
in the testing_repo
repository belonging to user2
, the command would be:
1 2 3 4 |
|
To specify a fork of a repository to merge from, put the username followed by a semicolon in front
of the branch name like so: "username:branch_name"
After running the command, you will be prompted for your GitHub password. Enter it and curl should output the JSON response from the API. Make sure to check this response for errors!