microsoft / microsoft/vscode-pull-request-github

PR overview remains stuck checking mergeability after an UNKNOWN response

Đang mở Phù hợp với người mới
#8,953 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

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ả

  • Extension version: 0.166.0 and 0.167.2026091104 (pre-release)
  • VSCode Version: 1.137.0
  • OS: macOS 26.6.2 (25G83), arm64
  • Repository Clone Configuration: Single repository
  • GitHub Product: GitHub.com

Steps to Reproduce:

  1. Open a repository containing an open pull request.
  2. Open the pull request description from the GitHub Pull Requests view while GitHub reports its mergeability as UNKNOWN, such as immediately after creating or updating the pull request.
  3. Scroll to the merge-status section and wait for GitHub to finish calculating mergeability.

Expected:

The extension polls again and replaces “Checking if this branch can be merged...” with the calculated mergeability status.

Actual:

“Checking if this branch can be merged...” remains indefinitely, even after GitHub.com and the GitHub API report the pull request as mergeable.

The polling code receives an object shaped like { mergeability, conflicts }, but passes the entire object to setMergeability():

const newMergeability = await checkMergeability();
setMergeability(newMergeability);

It should use:

setMergeability(newMergeability.mergeability);

Related: #4118 reported the same symptom but was closed before this response-shape regression was introduced.

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.

Hướng nghiên cứu

Xác định code polling gọi checkMergeability() và setMergeability(), sau đó kiểm tra cách response mergeability được truyền vào view merge-status. Cập nhật cách xử lý để mergeability đã tính toán thay thế trạng thái đang kiểm tra không xác định, và xác minh rằng phần tổng quan pull request được cập nhật sau khi GitHub trả về trạng thái đã được xác định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github, typescript
Lĩnh vực
developer-experience, frontend
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
78/100

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.