بنقرة واحدة
review-contributor-pr
// Review and manage pull requests from external contributors. Use when checking out, reviewing, editing, or merging a PR from a fork.
// Review and manage pull requests from external contributors. Use when checking out, reviewing, editing, or merging a PR from a fork.
| name | review-contributor-pr |
| description | Review and manage pull requests from external contributors. Use when checking out, reviewing, editing, or merging a PR from a fork. |
Contributors submit PRs from their forks. To push changes back (commit message fixes, minor tweaks), add their fork as a remote:
# Extract fork owner from PR (visible in gh pr view or the PR URL)
git remote add <owner> git@github.com:<owner>/pi-harness.git
git fetch <owner>
git checkout <owner>/<branch> -b <branch>
This works when the contributor has "Allow edits from maintainers" enabled (GitHub default).
To push amended commits back:
git push <owner> <local-branch>:<remote-branch> --force-with-lease
main and is rebased on current main (no merge conflicts).This repo uses conventional commits with scopes. Every commit must match:
<type>(<scope>): <description>
Common types: feat, fix, chore, perf, refactor, docs, test.
Scopes match directory names: scout, lookout, breadcrumbs, subagents, defaults, qq, palette, etc.
If commits don't follow this format, amend them (keep original author, set yourself as committer).
Run locally before merging:
pnpm typecheck
pnpm lint
pnpm test
All checks must pass.
Prefer fast-forward merge to keep linear history:
git checkout main
git merge <branch> --ff-only
git push origin main
If fast-forward fails, rebase the branch on main first.
After merge, clean up the local branch:
git branch -d <branch>