microsoft / microsoft/vscode-pull-request-github

PR overview remains stuck checking mergeability after an UNKNOWN response

オープン 初心者向け
#8,953 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
2.6k
フォーク
795
平均マージ
1日 4時間
マージ済み PR(30日)
46

説明

  • 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

checkMergeability() と setMergeability() を呼び出しているポーリングコードを特定し、mergeability のレスポンスが merge-status ビューにどのように渡されているかを確認します。計算された mergeability が確認中の不定状態を置き換えるように処理を更新し、GitHub が確定したステータスを返した後に pull request の概要が更新されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, typescript
領域
developer-experience, frontend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
78/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。