You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh pr create should push branch to fork even if I happen to have write permission #392
I have write permission on a repository, but policy is for all PRs to be filed from forks, even when authored by maintainers. gh pr create -w quietly pushed my branch to the origin repository.
gh version 0.5.4
Steps to reproduce the behavior
Fork a repository you have write permission to and file a PR on it using the tool.
Expected vs actual behavior
Expected: my fork used. Actual: pushed to origin and PR filed from there.
Logs
N/A
Reacted by David Phillips, Gibson Fahnestock, Pierre Krieger, Casper da Costa-Luis and Benjamin Wuethrich
The behavior is even worse. Simply running gh pr create will push a branch to the upstream repository and then prompt for PR information (such as title). The branch is left behind if PR creation is aborted by pressing ctrl-C.
Activity
electrum commentedon Feb 13, 2020
The behavior is even worse. Simply running
gh pr createwill push a branch to the upstream repository and then prompt for PR information (such as title). The branch is left behind if PR creation is aborted by pressing ctrl-C.mislav commentedon Feb 17, 2020
Thank you for reporting! Closing in favor of #350