request-copilot-review

Installation
SKILL.md

Request Copilot Code Review

Phase 1: Resolve the Target PR

  1. If the user passed an argument (PR number or URL), use it as <arg>. Otherwise, default to the PR for the current branch.
  2. Resolve the target PR:
    • With <arg>: gh pr view <arg> --json number,title,url,headRefName
    • Without <arg>: gh pr view --json number,title,url,headRefName
  3. If no PR is found (e.g., current branch has no open PR), stop and ask the user which PR to target (number or URL). Do not proceed until the user provides one.
  4. Once the PR is identified, proceed directly to Phase 2 without asking the user to confirm. Briefly mention the resolved PR (#<number> <title>) in your status update so the user can interrupt if it is wrong.

Phase 2: Request the Review

Run gh copilot-review with --wait so the command polls until Copilot finishes. Choose flags based on user intent:

  • Default: gh copilot-review <arg> --wait
  • User explicitly asks to force a re-request (e.g., "force", "ignore the existing review"): add --force
  • User specifies timeout / interval: pass through as --wait-timeout / --wait-interval (formats: 30sec, 5min, 1h)
Installs
1
GitHub Stars
7
First Seen
6 days ago