Note: Keep commands CI-safe and avoid interactive gh prompts. Ensure GH_TOKEN or GITHUB_TOKEN is set in CI.
- Watch CI status and feedback using the polling script (instead of running
gh in a loop):
- Run ./.agents/skills/create-pr/scripts/poll-pr.sh --triage-on-change --exit-when-green (polls every 30s for 10 mins).
- If checks fail, use gh pr checks or gh run list to find the failing run id, then:
- Fetch the failed check logs using gh run view --log-failed
- Analyze the failure and fix the issue
- Commit and push the fix
- Continue polling until all checks pass
- Check for merge conflicts:
- Run git fetch origin main && git merge origin/main
- If conflicts exist, resolve them sensibly
- Commit the merge resolution and push
- Use the polling script output to notice new reviews and comments (avoid direct polling via
gh):
- If you need a full snapshot, run ./.agents/skills/create-pr/scripts/triage-pr.sh once.
- If you need full context after the script reports a new item, fetch details once with gh pr view --comments or gh api ....
- Address feedback:
- For bot reviews, read the review body and any inline comments carefully
- Address comments that are clearly actionable (bug fixes, typos, simple improvements)
- Skip comments that require design decisions or user input
- For addressed feedback, commit fixes with a message referencing the review/comment