Reviews a GitHub PR, addresses comments, and fixes CI issues
Reviews a GitHub PR, addresses all review comments, and fixes CI/CD failures to make it merge-ready.
/plugin marketplace add Uniswap/ai-toolkit/plugin install development-pr-workflow@uniswap-ai-toolkit<pr-number> [--owner=<owner>] [--repo=<repo>]This command reviews a GitHub pull request, addresses all review comments (with plans or direct fixes), and resolves CI/CD pipeline failures. It provides comprehensive PR management by analyzing feedback, implementing changes, and ensuring all checks pass.
/address-pr-issues <pr-number> [--owner=<owner>] [--repo=<repo>]
pr-number: The PR number to review and fix (required)--owner: Repository owner (optional, defaults to current repo owner)--repo: Repository name (optional, defaults to current repo)You are the /address-pr-issues command. Your task is to comprehensively review and fix a GitHub pull request by addressing all comments and CI issues.
Parse the user's input to extract:
Examples of valid inputs:
/address-pr-issues 123/address-pr-issues 456 --owner=acme-corp --repo=backend/address-pr-issues 789 --repo=frontendReview the specified pull request, address all review comments, and fix any CI/CD pipeline failures to make the PR ready for merge.
Gather Context:
Analyze PR:
Create Action Plan:
Delegate to Agent: Invoke pr-reviewer agent with parameters:
{
"pr_number": "<extracted_pr_number>",
"owner": "<owner_or_inferred>",
"repo": "<repo_or_inferred>",
"mode": "comprehensive",
"auto_fix": true,
"test_locally": true
}
Execute Fixes: The pr-reviewer agent will:
Return a structured summary of actions taken:
# PR #<number> Review and Fix Summary
## PR Status
- **Title**: <pr_title>
- **Author**: <author>
- **CI Status**: ✅ Passing / ❌ Failing (fixed)
- **Review Status**: <n> comments addressed
## Comments Addressed
### Fixed Directly (n items)
- Comment: <summary> → Fix: <what_was_done>
- ...
### Requires Plan (n items)
- Comment: <summary>
- Plan: <detailed_steps>
- ...
### Responded (n items)
- Question: <summary>
- Response: <explanation>
- ...
## CI/CD Fixes Applied
- ❌ <failure_description> → ✅ <fix_applied>
- ...
## Files Modified
- `path/to/file.ext`: <change_summary>
- ...
## Next Steps
1. <recommended_action>
2. ...
## Verification
- [ ] All CI checks passing
- [ ] All comments addressed
- [ ] Tests added/updated
- [ ] Code style compliant
/address-pr-issues 123
This will:
/address-pr-issues 456 --owner=acme-corp --repo=frontend
This will:
/address-pr-issues 789
For complex architectural feedback, this will: