microsoft / microsoft/vscode-pull-request-github
PR overview remains stuck checking mergeability after an UNKNOWN response
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.0and0.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:
- Open a repository containing an open pull request.
- 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. - 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- 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