本文へ移動
cccskills
無料GitHub で公開日本語紹介

github-pr-status

開発環境の現在のブランチに対応するGitHubのPRを確認し、チェックやレビューの状況を把握しながら、bb CLIからドラフト切り替えやマージを行うスキル。

原文原文の説明を見る

Inspect an environment's GitHub pull request, mark it ready or draft, or merge it from the bb CLI; read PR status from another plugin.

get-bb/bbスター 4,750(GitHub 4,750 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • PRのレビューとチェックを確認したいとき
  • ドラフトPRをレビューに出したいとき
  • マージ可能なPRを統合したいとき
  • 別プラグインにPR状況を表示したいとき

日本語での紹介

できること

開発環境の現在のブランチに対応するGitHubのプルリクエスト(PR)を調べ、状態の確認や変更を行います。bb pull-request showでPR番号、チェック、レビュー、マージ可能かどうかを確認できます。ドラフトとレビュー可能な状態の切り替えに加え、merge、squash、rebaseを指定したマージにも対応します。

こんなときに便利

作業中の環境にひもづくPRをコマンドから確認したいときに向いています。他のプラグインから同じ状態データを読み取り、表示に利用する用途にも使えます。変更操作の直前にはPRを再取得し、実行条件を満たさない場合は理由を返します。

使い方の例

  • 「この環境のPRのチェックとレビュー状況を確認して」
  • 「ドラフトPRをレビュー可能な状態にして」
  • 「マージ可能ならsquashでマージして」

注意点

対象マシンにghのインストールとログインが必要です。停止中やオフラインのマシンは起動せず、状態を取得できません。マージは、GitHubがマージ可能と判定したオープンなPRが対象です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

GitHub PR Status

The plugin finds the pull request for an environment's current branch by running gh in the environment's workspace on its machine, so forks, upstream remotes and the machine's own gh login apply. The sidebar row badge (the number in its state's color, shown when the threadRowMetadata experiment and Organize → Rows → Metadata are on), the composer banner, the Info panel and plugin-built sidebars read their PR status from it. Pending checks re-check about every 30 seconds in one batched GitHub request per machine.

bb pull-request show <environment-id> [--json]
bb pull-request ready <environment-id> [--json]
bb pull-request draft <environment-id> [--json]
bb pull-request merge <environment-id> [--method merge|squash|rebase] [--json]
  • show prints the PR number, state, branch, attention, checks, review and mergeability. --json prints { "outcome": "available", "pullRequest" }, { "outcome": "absent" } or { "outcome": "unavailable", "message" }.
  • ready needs a draft PR, draft needs an open PR and merge needs an open PR GitHub reports as mergeable. Each re-reads the PR first and fails with the reason otherwise.
  • bb never wakes a machine for PR work. When the environment's machine is suspended or offline, show reports unavailable and the actions fail with a message naming the machine.
  • gh must be installed and logged in on that machine.

The showPullRequest setting (default true) shows the pull request segment above the composer. Turn it off with bb plugin config bb--github-pr-status set showPullRequest false; the Info panel's Pull request row stays.

Other plugins read the same data through RPC. pullRequests is a keyed read: pass up to 200 environment ids and get one row per id. While a client watches a row, the plugin re-checks an open or draft PR every 30 seconds while any check is pending, auto-merge is on, the PR is queued or mergeability is unknown, and about every 5 minutes for other open or draft PRs. Merged and closed PRs do not poll. It also rechecks after a turn that ran gh, or discovers a PR after a turn on a branch without one. Environment status and branch changes refresh; ref changes read the local upstream OID and fetch only when it changes. App reads answer at once from what the plugin has and refresh a stale row in the background: open and draft PRs after 30 seconds, merged and closed PRs after an hour, a "no PR" result after 5 minutes. Opening a thread, including by loading the page on it, re-checks its PR on GitHub through refresh, whatever the row's age; other views ask again when they first show and each time the page shows again. CLI and RPC reads wait for a row older than 10 seconds. Call refresh with { environmentId } to re-check a row on GitHub now; it resolves once the row is current. Saved rows survive a restart. Environments sharing a PR share its fetch and timer, and viewers refresh only when the row changes.

experimental_useRpcKeyedQuery({
  pluginId: "bb--github-pr-status",
  contract,
  method: "pullRequests",
  keys: [environmentId],
});

bb plugin rpc inspect bb--github-pr-status prints the input and output schemas for pullRequests, markReady, markDraft and merge.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

account-pool

無料概要あり

BBのAccount Poolerでアカウントや認証、利用枠に応じた振り分けを設定・診断します。アカウントの切り替えや、制限時の再試行の判断も確認するスキルです。

  • 登録アカウントと振り分け状態の確認
  • ログインや認証情報の取り込み設定
  • 利用枠やアカウント切り替えの調査
get-bb/bb4,7502026年10月30日 更新

acp-provider

無料概要あり

BBで使うACPエージェントの追加・検出やモデル選択を設定し、動作の問題を調べるスキル。独自エージェント、スキルの参照先、会話の圧縮も扱います。

  • 公式レジストリからエージェントを追加
  • OpenCodeのモデルやモードを調査
  • 独自エージェントとスキル参照先の設定
get-bb/bb4,7502026年10月30日 更新

add-contributor

無料概要あり

指定したGitHubアカウントをget-bb/bbのPR作成許可リストへ追加します。アカウントの照合から差分確認、承認用PRの作成・マージまでを進めるスキルです。

  • 貢献者のPR作成を許可したいとき
  • レビュー用の承認PRを作りたいとき
  • アカウントの承認状況の確認
get-bb/bb4,7502026年10月30日 更新

agent-annotations

無料概要あり

ブラウザ画面の要素にコメント付きのピンを付け、AIへの指示に参照として添えるスキル。コメントの編集・削除や、保存済み注釈の更新も扱います。

  • 変更したいボタンを指示で示したいとき
  • 送信前の注釈コメントを直したいとき
  • 保存済みの注釈を更新したいとき
get-bb/bb4,7502026年10月30日 更新

automations

無料概要あり

BBのエージェントへの依頼やサーバー上のスクリプトを、定期または一度だけ実行する予定として登録し、一時停止・再開、手動実行、実行履歴の確認まで管理するスキル。

  • フィードの要約を定期実行したいとき
  • 定期的なヘルスチェックやAPI確認
  • 一度だけ実行する依頼の予約
get-bb/bb4,7502026年10月30日 更新

bb-account

無料概要あり

bbサーバーとgetbb.appアカウントの接続状況を確認し、ブラウザやコードでのサインインとサインアウトを扱うスキル。リモートアクセスの利用先も確認できます。

  • bbサーバーの接続先アカウント確認
  • ブラウザやコードでサインインしたいとき
  • サーバーの接続先を切り替えたいとき
get-bb/bb4,7502026年10月30日 更新

get-bb のスキルをすべて見る

このスキルの問題を報告する