jackin-project/jackin-dev

jackin-checkout-pr

Use only when the user explicitly requests this skill.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/jackin-project/jackin-dev --skill jackin-checkout-pr

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

jackin-checkout-pr

Switch the working repo onto a PR's branch via gh pr checkout. Accepts a number, URL, or branch name.

Process

  1. Resolve to a PR number. Number or URL → pass to gh pr checkout directly. Branch name → gh pr list --head <branch> --state all --json number -q '.[0].number'; no match → STOP, do not fall back to raw git checkout.
  1. Guard the working tree. git status --porcelain — if dirty, STOP and ask the operator to commit, stash, or discard first. Never auto-stash. Note git branch --show-current (the way back).
  1. Check the PR is open. gh pr view <N> --json state,headRefName. MERGED or CLOSED → warn (the branch may be stale) and confirm before proceeding.
  1. Switch. gh pr checkout <N>. Verify git branch --show-current matches headRefName.
  1. Report. Switched from <old> to <headRefName> (PR #N). Way back: git switch <old>.

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills