Cannot modify PR from fork using . interface
See original GitHub issueSimilar to #2557 but that one sounds like a feature request, while mine is more like a bug report. I first submitted this to GitHub Help Desk but after a month or so of silence, they asked me to open issue here.
- Extension version: (Not sure what this is)
- VSCode Version: (Not sure how to check)
- OS: Windows 10
Steps to Reproduce:
I tried this . trick to try to fix someone else’s PR from a fork to a repo I help maintain, but the commit failed with permission error. That wasted 30 minutes of my time, when I could have done it locally via normal git commands.
Reproduction Steps
- Go to an active PR on a repo you have write access to, and the maintainer is allowed to push commits to it.
- Click on the link that takes you to the PR branch on the author’s fork.
- Use the magical
.key to pop up VS Code interface. - Do some edits across several files on that branch.
- Attempt to commit the changes. See errors about unable to commit due to permission issues.
- Abandon ship.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Can I modify someone else's pull request and push it back in ...
I would like to know if it is possible to do the exact same thing but not being the author of the fork?...
Read more >Allow modification of branch by project maintainers ... - GitLab
Allow modification of branch by project maintainers when opening an merge request from a fork. When collaborating with contributors using a ...
Read more >Fork a repository | Bitbucket Cloud - Atlassian Support
Forking is a way for you to clone a repository at a specific point, and to modify it from there. To fork is...
Read more >How do you update a GitHub repo fork in the web interface ...
And that is by definition not syncing because they will differ after this. In theory it should be possible because whenever I use...
Read more >Creating issue forks and merge requests - Drupal
How to use an issue fork and merge request to contribute code changes, ... Just click on the issue fork link to open...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yeah, unfortunately there is a current issue with the GitHub apis for this scenario which is blocking us from being able to commit properly. We are currently switching to use a new set of GitHub apis for committing (via GraphQL) which should resolve this issue.
Additionally, just know for the future you can export a Git patch file from github.dev:
Which you can then import and apply locally using
git apply <patch-filename>.Thanks for the details @eamodio!
Closing as upstream.