Create PR shows error if there has been a previous PR on that branch
Version info
- Extension version: 0.110.0
- VSCode Version: 1.100.3
- OS: MacOS 16.3.2
- Repository Clone Configuration (single repository/fork of an upstream repository): Single original repository
- Github Product (Github.com/Github Enterprise version x.x.x): Github.com
Steps to Reproduce:
In the Create Pull Request dialog
- Create PR from, for example,
developmentbranch tomainbranch`, merge and close. - Create additional commits.
- Create a new PR from
developmentbranch tomainbranch`. - RESULT: At the bottom of the description box is an error: "A pull request already exists for this branch."
My workflow is to have a main branch, and a development branch. To work on a feature, I create feature branch. When that is complete, it is merged into the development branch. When a milestone is ready to deploy, the development branch is merged into the main branch by way of a pull request. This process is repeated throughout the life of the project so development may be merged into main many times. However, there is never more than one PR open on the same branch at a time.
I believe I have been able to do this in the past. I can create PRs in GitHub for the same branch without an error.
Is this something that is new in recent releases, or am I going crazy and it's always been like that?
In some cases it will default to a comment that it is reverting a previous commit. In the case of this screenshot, a commit from seven months ago. If it's true, it is certainly not what I want to due. If not, it is, at best, misleading.
alt text: [Comment] This reverts commit bd42bf45a69b76ca3c16d7daf40633e77c0e0ace.
Updating to only show the warning if the HEAD of the remote branch is the same as the HEAD of the local branch.