Apply Fixes

Apply review findings as the smallest code changes, then commit and push. Used on the bot's own PRs.

Sentry d6bb6f6 2 files · 2.3 KB Updated 845 repo stars

File contents

Apply Fixes

Turn a JSON array of review findings into commits on the current branch.

Input

Findings array with kind, file, line, summary, suggested_fix.

Workflow

  1. Verify you're on a feature branch, not the default.
  2. Plan: decide which findings are tractable in small changes vs. skip.
  3. Implement one finding at a time. Smallest change per finding.
  4. Run tests if you can find the command quickly.
  5. Load deslop skill.
  6. Commit and push. Stage only files you edited.
  7. If a finding came from a PR review thread, close the loop on that thread (see respond-to-comment): reply on the thread with the commit SHA, then resolve the thread. Only resolve threads you actually fixed. After all fixes are pushed, re-request review from the reviewer.

Report: commit SHA, findings addressed, findings skipped with reasons. Don't force-push. Don't open a new branch or PR.

getsentry/outpost/tree/main/apps/server/container/skills/apply-fixes commit d6bb6f60a6

Frequently asked questions

npx skillmds@latest add getsentry/apply-fixes