Search

PythonReactSEOPDF
GitHub Skill

github-pr-review-operation

GitHub Pull Requestのレビュー操作を行うスキル。PR情報取得、差分確認、コメント取得・投稿、インラインコメント、コメント返信をghコマンドで実行する。PRレビュー、コードレビュー、PR操作が必要な時に使用。

TakumiOkayasu☆ 0 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

GitHub PR Review Operation

📋 実行前チェック(必須)

このスキルを使うべきか?
  • GitHub PRをレビューする?
  • PRにコメントを投稿する?
  • インラインコメントを追加する?
  • PR情報を取得する?
前提条件
  • gh CLIがインストールされているか?
  • gh auth loginで認証済みか?
  • PR URLから OWNER/REPO/NUMBER を抽出したか?
禁止事項の確認
  • 未認証状態で操作しようとしていないか?
  • 権限のないリポジトリを操作しようとしていないか?

トリガー

  • GitHub PRレビュー時
  • PRへのコメント投稿時
  • インラインコメント時
  • PR情報取得時

前提条件

  • gh インストール済み
  • gh auth login で認証済み

PR URLのパース

PR URL https://github.com/OWNER/REPO/pull/NUMBER から以下を抽出して使用:

  • OWNER: リポジトリオーナー
  • REPO: リポジトリ名
  • NUMBER: PR番号

操作一覧

PR情報取得
gh pr view NUMBER --repo OWNER/REPO
差分確認
gh pr diff NUMBER --repo OWNER/REPO
コメント取得
gh pr view NUMBER --repo OWNER/REPO --comments
コメント投稿
gh pr comment NUMBER --repo OWNER/REPO --body "コメント内容"
レビュー投稿
gh pr review NUMBER --repo OWNER/REPO --approve --body "LGTM"
gh pr review NUMBER --repo OWNER/REPO --request-changes --body "修正をお願いします"
gh pr review NUMBER --repo OWNER/REPO --comment --body "確認中です"

🚫 禁止事項まとめ

  • 未認証状態での操作
  • 権限のないリポジトリへの操作

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-26
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!