Fix Pr Comments

Read review comments on a GitHub PR and fix the issues raised. Use when the user asks to address, fix, or resolve PR comments or review feedback. Use when this capability is needed.

tomevault-io a48abad 2 files · 1.9 KB Updated

File contents

Fix PR Comments

Finding the PR

If no PR number is provided, find the current branch's PR:

gh pr view --json number,url -q '.number'

Reading review comments

Get both general comments and inline review comments:

# General PR comments
gh pr view <PR_NUMBER> --json comments,reviews --jq '.comments[], .reviews[]'

# Inline review comments (on specific lines of code)
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments

Workflow

  1. Fetch all comments using the commands above
  2. Parse each comment to understand what change is being requested
  3. Ignore bot comments that are purely informational (e.g. CI status)
  4. For each actionable comment, make the requested fix in the codebase
  5. Run the linter (make style && make quality) and tests (uv run pytest) after making changes
  6. Commit and push the fixes

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/finbarrtimbers--llamax--fix-pr-comments commit a48abad282

Frequently asked questions

npx skillmds@latest add tomevault-io/fix-pr-comments