-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create PullRequest between forked repo to original #792
Comments
I think the way you wanted this, it's not possible when reading the API at https://developer.github.com/v3/pulls/#input for the So you can only do: original_repo.create_pull("Title", "Body", '{}'.format(master), '{}:{}'.format(forked_user, feature), True) |
Just clarifying, I tried this and ended up backwards. From fork upstream_user = github_api.get_user('tox-dev')
upstream_repo = upstream_user.get_repo('tox')
upstream_pullrequest = upstream_repo.create_pull("Title", "Body", 'master',
'{}:{}'.format('evandroforks', 'master'), True) From upstream fork_user = github_api.get_user('evandroforks')
fork_repo = fork_user.get_repo('tox')
fork_pullrequest = fork_repo.create_pull("Title", "Body", 'master',
'{}:{}'.format('tox-dev', 'master'), False) |
Can this issue be reopened? It would be a nice feature to have |
@edwardchalstrey1 , I am already using this to create pull-requests from my forks the original repositories. here is the code: https://github.com/evandrocoan/githubpullrequests/blob/61e583f2247d252633d7a17f3345acadaf707dd6/source/githubpullrequests/__init__.py#L359 This is an example pull-request created with it: evandroforks/vscode-textmate#2 Perhaps you are trying to do something else? |
is there a method to create a pull request with the original repo as the base and a forked branch as the head?
I tried this line, but it threw a 'Validation Error'
repo.create_pull("Title", "Body", '{}:{}'.format(original_repo, master), '{}:{}'.format(forked_user, feature), True)
The text was updated successfully, but these errors were encountered: