microsoft / microsoft/vscode-pull-request-github

Closed PRs get associated with new branches of the same name

Đang mở
#6,711 3 bình luận 1 reaction 1 người được giao Xem trên GitHub

@alexr00 đang làm issue này rồi.

Từ ngày 7/5/2025.

bug
Ngôn ngữ chính
TypeScript
Star
2.6k
Fork
795
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
46

Mô tả

Sometimes, when I create a branch, I will find it becomes associated with a wrong PR that was previously closed and used the same branch name.

This can mean if you run the "delete local branches and remotes" command it will wrongly delete your branch.

  • Extension version: 0.106.0
  • VSCode Version: 1.98.0 (system setup)
  • OS: Windows_NT x64 10.0.22631
  • Repository Clone Configuration: fork of an upstream repository
  • Github Product: Github.com

Steps to Reproduce:

Unknown. Note in .git/config you might see something like:

[branch "dev"]   # this branch was created a few days ago
	remote = origin
	merge = refs/heads/dev
	vscode-merge-base = origin/dev
	github-pr-owner-number = "cylc#cylc-ui#810"
	github-pr-owner-number = "cylc#cylc-ui#810"
	github-pr-owner-number = "cylc#cylc-ui#810"
	github-pr-owner-number = "cylc#cylc-ui#810"
	github-pr-owner-number = "cylc#cylc-ui#810"    # this is a PR that was closed 4 years ago!

or

[branch "log-wrap"]
	vscode-merge-base = origin/master
	remote = origin
	github-pr-owner-number = "cylc#cylc-ui#1708"
	github-pr-owner-number = "cylc#cylc-ui#1708"
	github-pr-owner-number = "cylc#cylc-ui#1708"
	github-pr-owner-number = "cylc#cylc-ui#1708"
	github-pr-owner-number = "cylc#cylc-ui#2078"   # finally the correct one!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.