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

reject-pr

現在のブランチに紐づくPRへ、直前のレビュー内容を変更要求として投稿し、作成者へのメンションとREADYラベルの解除を行うスキルです。

原文原文の説明を見る

Reject the pull request for the currently checked-out branch. Posts the review from this conversation as a change-request review that tags the PR author, sets the PR to "changes requested", and clears the READY label. Use after review-pr when you decide to reject.

questdb/questdbスター 17,476(GitHub 17,476 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • レビューをPRの変更要求として投稿したいとき
  • PRをchanges requestedにしたいとき
  • 却下後にREADYラベルを外したいとき
  • 現在のブランチのPRを却下したいとき

日本語での紹介

できること

reject-pr は、現在チェックアウトしているブランチのプルリクエストに、同じ会話内で直前に作成されたreview-prのレポートを変更要求として投稿します。レポート本文はそのまま使い、先頭にPR作成者へのメンションを加えます。続けてPRを「changes requested」の状態にし、READYラベルが付いていれば解除します。PRの再レビューやレポートの書き直しは行いません。

こんなときに便利

レビューで修正が必要と判断した後、指摘内容をPRの正式な変更要求として反映したいときに使えます。直前のレビュー結果をそのまま作成者へ届け、PRの状態とラベルを更新できます。

使い方の例

  • 「このPRに直前のレビューを変更要求として投稿して」
  • 「現在のブランチのPRを却下して」
  • 「PR #1234にレビュー結果を反映して」

注意点

GitHub CLIのghを使います。同じ会話内にreview-prのレポートが必要です。自分が作成したPRでは変更要求を設定できないため、その場合はコメント投稿に切り替わります。

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

含まれるファイル(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

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

Reject a QuestDB pull request

Reject the pull request for the branch that is currently checked out. This skill is meant to be run right after review-pr in the same conversation: it takes the review you just produced and turns it into a blocking change-request on the PR. Do not re-review here — post the existing review.

Actions performed, in order:

  1. Post the review as the PR's review body (this is the "PR comment"), tagging the PR author.
  2. Request changes (sets the PR to the "changes requested" state).
  3. Clear the READY label.

Step 0: Locate the review to post

The body you post is the most recent review-pr report in this conversation (its Critical / Moderate / Minor / Coverage map / Summary output).

  • If no review report exists in this conversation, STOP and tell the user to run /skill:review-pr first — do not fabricate a review.
  • Do not shorten or rewrite the review; post it verbatim. You only prepend the author mention.

Step 1: Detect the PR

Auto-detect the PR from the checked-out branch. An explicit PR number/URL in the arguments overrides detection.

PR='<explicit PR number/URL from arguments, else empty>'
[ -z "$PR" ] && PR=$(gh pr view --json number -q .number 2>/dev/null)
if [ -z "$PR" ]; then
  echo "No PR found for the current branch. Run 'gh pr checkout <n>' or pass a PR number."; exit 1
fi
gh pr view "$PR" --json number,title,author,headRefName,url,state,labels
AUTHOR=$(gh pr view "$PR" --json author -q .author.login)
echo "Rejecting PR #$PR by @$AUTHOR"

State one line to the user: which PR (#number — title) and author you are about to reject, then proceed.

Step 2: Write the review body to a file

Write the review body to /tmp/reject-pr-$PR.md using the write tool (never inline it into a shell command — reviews contain backticks, quotes, and $ that break shell quoting). The first line must mention the author:

@<AUTHOR>

<the full verbatim review-pr report>

Step 3: Post the rejection

gh pr review "$PR" --request-changes --body-file /tmp/reject-pr-$PR.md

# Clear the READY label only if present (avoids a spurious error).
if gh pr view "$PR" --json labels -q '.labels[].name' | grep -qx "READY"; then
  gh pr edit "$PR" --remove-label "READY"
fi

Notes:

  • GitHub does not allow requesting changes on your own PR. If gh pr review --request-changes fails for that reason, fall back to gh pr comment "$PR" --body-file /tmp/reject-pr-$PR.md, tell the user the PR could not be moved to "changes requested" because it is self-authored, and still clear the READY label.

Step 4: Confirm

Report back in one or two lines:

  • PR number + title, author tagged, "changes requested" posted (or the fallback used).
  • Whether the READY label was removed or was already absent.
  • The PR URL.

レビュー

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

コメント

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

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

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

0 / 1000 文字

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

同じリポジトリのスキル

approve-pr

無料概要あり

直近のコードレビュー結果を対象ブランチのPRに承認として投稿し、「QUEUED FOR MERGE」ラベルを付けるスキルです。

  • レビュー済みPRを承認したいとき
  • マージ待ちラベルを追加したいとき
  • レビュー報告をPRに投稿したいとき
questdb/questdb1.7万2026年10月26日 更新

debug-fuzz

無料概要あり

WALファジーテストの失敗を、固定シードから再現し、列型変換やParquet・ネイティブ形式間の変換履歴とパーティション状態を追って原因を絞り込むスキルです。

  • シード指定でWALの失敗を再現したいとき
  • 列型変換の値違いを調べたいとき
  • Parquet変換前後の差を追いたいとき
questdb/questdb1.7万2026年10月26日 更新

debug-fuzz-top

無料概要あり

QuestDBのWAL/O3テスト失敗を調べ、複合パーティションの形状や行配置を手掛かりに原因を絞り込むスキルです。

  • WAL/O3テストの失敗原因を追いたいとき
  • ランダムシードで失敗を再現したいとき
  • 複合パーティションの再現テストを作りたいとき
questdb/questdb1.7万2026年10月26日 更新

fix-ci

無料概要あり

PRのCI状況を確認し、失敗したテストやビルドの内容を調べて原因を分類します。機械的に直せる期待値のずれは修正し、判断が必要な問題は利用者に相談します。

  • PRのCI失敗をまとめたいとき
  • 失敗したテスト名とエラーを調べたいとき
  • 変更後の期待値をテストへ反映したいとき
questdb/questdb1.7万2026年10月26日 更新

fix-pr

無料概要あり

QuestDBのPR指摘を原因や呼び出し元への影響まで調べ、設計レビューと回帰テストを経て適切な修正を進めるスキルです。

  • PR指摘の原因を調査したいとき
  • 修正の呼び出し元への影響を確認したいとき
  • 設計レビュー後に回帰テスト付きで直したいとき
questdb/questdb1.7万2026年10月26日 更新

fix-pr

無料概要あり

QuestDBのPRレビューで指摘された項目を一件ずつ検証し、必要に応じて再現テスト、修正、テスト実行、独立レビューまで進めるスキルです。

  • レビュー指摘の妥当性を確かめたいとき
  • 不具合を回帰テストで再現したいとき
  • 確認済みの指摘を絞って修正したいとき
questdb/questdb1.7万2026年10月26日 更新

questdb のスキルをすべて見る

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