pr-completion
Ensure PR checks pass and conflicts are resolved before completing tasks. Use after creating a PR, when marking tasks as done, or when completing work that resulted in a PR.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
PR Completion Workflow
Before marking a task as done after creating a PR, verify:
- All PR checks pass
- No merge conflicts exist
Check PR Status
# View PR checks
gh pr checks
# View PR status (includes mergeable state)
gh pr view --json state,mergeable,mergeStateStatus
Wait for Checks
If checks are pending:
# Wait for checks to complete (blocking)
gh pr checks --watch
If checks fail:
- Read check logs:
gh pr checks --json name,state,conclusion - Fix failing checks
- Push fixes
- Re-verify with
gh pr checks --watch
Resolve Conflicts
If PR has conflicts (mergeable: CONFLICTING):
# Update branch from base
gh pr update-branch
# Or rebase locally
git fetch origin
git rebase origin/main
# Resolve conflicts
git add .
git rebase --continue
git push --force-with-lease
Completion Checklist
Before set_task_status --status=done:
-
gh pr checksshows all checks passing -
gh pr view --json mergeableshowsMERGEABLE
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!