Cannot create comment on pull request based on fork
- Extension version: 0.120.1
- VSCode Version: 1.105.1
- OS: Windows 11, Ubuntu 24.04
- Repository Clone Configuration : Single Repository
- GitHub Product GitHub.com
Steps to Reproduce:
- Open GitHub Pull Request extension in VSCode
- Find a Pull request based on a branch on a fork of main repo
- Write a comment and press comment
- Error is raised:
Creating comment failed: Error: File has been deleted.
@alexr00 This seems to be potentially correlated with other issues like:
- https://github.com/microsoft/vscode-pull-request-github/issues/6096
Is your origin remote the main repo, the fork, or yet another fork?
@alexr00 I have tested two different setups: both main repo, but also fork of repo A trying to comment on PR made on another fork of A.
Crucially, there is no issue making a comment on repo A itself.
This is still an issue, makes working on pull requests in vscode impossible for me. Same setup, pull requests from branches on the main repo work ok, pull requests from branches on forks are not possible to review in vscode at all
I can repro. It only seems to happen on certain PRs. Thanks for you persistence on this.
As far as I can see it looks like an issue with the GitHub API that we're using. I've asked the GitHub folks and will report back on what they say.
I am dealing with this constantly. It's on our private repo - no forks
Creating comment failed: Error: File has been deleted.
GitHub folks are looking at it. Unfortunately there's not much I can do from this extension as there's no other API I can try to add the comment.
I have suddenly started running into this for a PR I am reviewing (https://redirect.github.com/cylc/cylc-ui/pull/2370). Not had this problem before when reviewing PRs for the same repo, using the same clone. In fact I'm sure I was able to leave review comments on the same PR a few days ago.
Extension 0.122.1, VS Code 1.106.3
I also have this issue, in the case of a PR on a fork and also for a PR on the upstream repo.
There's no information in the logs, just an error dialog with these contents
[Window Title] Visual Studio Code
[Main Instruction] Starting review failed. Any review comments may be lost.
[Content] File has been deleted.
[OK]
I also got the same issue!
It sounds like the GitHub API might be misbehaving here? Is there any tracking issue for the underlying problem that we can upvote and subscribe to?
The tracking issue is internal to GitHub, so folks here can't upvote it. This issue is the best option to upvote and subscribe to.
The tracking issue is internal to GitHub, so folks here can't upvote it. This issue is the best option to upvote and subscribe to.
two months passed, the issue still haven't been fixed. sounds crazy.