question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot modify PR from fork using . interface

See original GitHub issue

Similar 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

  1. Go to an active PR on a repo you have write access to, and the maintainer is allowed to push commits to it.
  2. Click on the link that takes you to the PR branch on the author’s fork.
  3. Use the magical . key to pop up VS Code interface.
  4. Do some edits across several files on that branch.
  5. Attempt to commit the changes. See errors about unable to commit due to permission issues.
  6. Abandon ship.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eamodiocommented, Sep 30, 2021

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:

image

Which you can then import and apply locally using git apply <patch-filename>.

0reactions
alexr00commented, Sep 30, 2021

Thanks for the details @eamodio!

Closing as upstream.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found