Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.2 KB

File metadata and controls

53 lines (35 loc) · 1.2 KB
name resolve-pr-comments
description Address code review comments on a PR to make it merge-ready. Evaluates suggestions critically.
disable-model-invocation true
argument-hint [PR number]

Resolve PR Review Comments

Usage

Provide the PR link or number.

Workflow

1. Fetch Review Comments

gh api repos/{owner}/{repo}/pulls/{number}/comments

Focus on unresolved threads.

2. Evaluate Each Comment Critically

AI reviewers can be wrong. Before implementing any suggestion:

  • Verify the claim — does the code actually have the issue?
  • Question severity labels — "critical"/"major" are often overstated
  • Check if current code works — suggestion may be based on misunderstanding
  • Ask the user if a suggestion seems questionable or requires significant changes

3. Address Valid Comments

Implement fixes for valid comments. Skip invalid suggestions — no need to explain to an AI reviewer.

4. Run Checks

Run the project's check/lint command.

5. Commit, Push, and Report

git add <specific-files>
git commit -m "fix: address review comments"
git push

Goal

  • All valid review threads addressed
  • All checks pass
  • PR ready to merge