PR Workflow
Use when user asks to create a PR, review a PR, submit a GitHub review, or implement review fixes.
Create PR
- Check
git status --short, branch, remotes, and auth. - Default base:
develop. - If reviewer missing, ask for at least one reviewer and list contributors from
gh api repos/:owner/:repo/contributors --paginateorgit shortlog -sne. - Get labels with
gh label list; use only existing labels. - Write detailed PR body: what, why, validation, risks.
- Create with
gh pr create --base develop --assignee @me --reviewer <login>.
Review PR
- Use
pr-review-governancefor the review checklist, summary, and inline comment rules. - Local review: inspect metadata and diff, then report governed findings locally.
- GitHub review: submit
--comment,--approve, or--request-changesonly after the governed checklist is complete. - Inline comments when exact changed lines matter; summary comment otherwise.
Implement Review Fixes
- Read reviews/comments/threads.
- Verify every requested change against current code.
- Fix relevant items only.
- Explain skipped/outdated items.
- Validate and report.