Repeat the following loop until the PR is fully approved and CI is green:
- Check for conflicts - Pull the latest
mainbranch from origin and check that there is no conflict with the current branch. If there are any, fix them and push, and restart the loop - Check CI status - Poll GitHub Actions until all checks complete, wait if needed.
- If CI failed - Investigate the failure, implement the minimal fix, push, and restart the loop
- Check reviews - Look for comments from both human reviewers and agent reviewers
- If changes requested - Implement the requested changes (only what's needed), push, and restart the loop
Before each push, verify you're not introducing more changes than required. After each push, post a comment summarizing what you changed so reviewers (human and agent) can track your work
Keep iterating until:
- There are no conflict and the branch is up to date
- All CI checks pass
- All reviewer comments are addressed