A pull request has a failing CI check and a review comment asking for a change.
Fix PR #4365 in RooCodeInc/Roo-Code.
Get PR details and review comments.
github
get_pull_request
{
"owner": "RooCodeInc",
"repo": "Roo-Code",
"pullNumber": 4365
}
github
get_pull_request_comments
{
"owner": "RooCodeInc",
"repo": "Roo-Code",
"pullNumber": 4365
}
Get the branch name, list of review comments, and check for mergeability.
Check CI status.
gh pr checks 4365
Identify which check is failing.
Get logs for the failing check.
gh run view --log-failed
Find the specific error message causing the test to fail.
Check out the pull request branch.
gh pr checkout 4365 --force
The PR branch is now ready for local edits.
Summarize findings and ask the user for the next action.
I've checked out the branch. I've found a failing test related to 'XYZ' and a review comment asking to rename a variable. How should we proceed?
First, apply the change requested in the review comment.
Let's start by fixing the failing test.
Show me the code for the failing test and the file with the requested change.
After pushing the changes, monitor PR checks in real-time.
gh pr checks 4365 --watch
Monitor checks continuously until all complete. The --watch flag provides real-time updates as check statuses change.
Always gather all information before proposing a solution.
Use a combination of the GitHub MCP server and the `gh` CLI to get a complete picture of the PR's status.
A pull request has review comments requesting UI text changes that require translation updates across all supported languages.
Fix PR #1234 in RooCodeInc/Roo-Code - the reviewer asked to change button text and there are some failing tests.
Get PR details and analyze changes.
github
get_pull_request
{
"owner": "RooCodeInc",
"repo": "Roo-Code",
"pullNumber": 1234
}
Identify the files changed and review feedback requiring UI text modifications.
Check out PR and apply the requested changes.
gh pr checkout 1234 --force
Make the requested button text changes in the UI components.
Identify translation requirements and delegate to translate mode.
translate
Translation updates needed for PR #1234 fixes. The following changes were made based on review feedback:
Files modified:
- webview-ui/src/components/settings/ApiSettings.tsx: Changed button text from "Save" to "Save Configuration"
- webview-ui/src/i18n/locales/en/common.json: Updated key "save_button" to "save_config_button"
Please update all supported languages (ca, de, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW) with appropriate translations for:
- New key "save_config_button" with translation equivalent to "Save Configuration"
- Any other text changes that affect user-facing content
Ensure consistency across all language files and maintain the same context and tone as existing translations.
Translation subtask created and all language files updated.
Commit all changes including translations with automated git configuration.
git add . && git commit -m "fix: update button text and translations as requested in review"
All code changes and translation updates are now committed.
Check if PR is from a fork and push to correct remote.
gh pr view 1234 --json isCrossRepository,headRepositoryOwner,headRefName
Determine if this is a cross-repository PR to know which remote to push to.
Push changes to the appropriate remote.
git push --force-with-lease origin
Push changes safely to update the pull request. Use 'fork' remote instead if PR is from a fork.
Monitor CI status in real-time.
gh pr checks 1234 --watch
Watch CI checks continuously until all tests pass. The --watch flag provides automatic updates as check statuses change.
Always check if PR fixes involve user-facing content that requires translation.
Use new_task with translate mode to ensure consistent translation updates.
Include detailed context about what changed and why in translation requests.
Verify translation completeness before considering the PR fix complete.