Address review comments from the current branch's PR: $ARGUMENTS
- •Get the PR number for the current branch using
gh pr view --json number -q '.number' - •Fetch all review comments using
gh api repos/{owner}/{repo}/pulls/{pr_number}/commentsandgh pr view --json reviews,comments - •For each unresolved comment, extract: author, body, file path, line number
- •Summarize each comment in one line describing what change is requested
- •Use the AskUserQuestion tool with
multiSelect: trueto let the user choose which comments to address. Format options as:- •Label: Brief summary (~50 chars max)
- •Description: Author and additional context
- •For each selected comment:
- •Navigate to the relevant file and line
- •Implement the requested change
- •Inform the user of progress