feat(issue): Add automation for issue handling - #256
Open
AkhileshNegi wants to merge 1 commit into
Open
Conversation
Adds a Claude Code slash command that picks up an open issue labelled ready-for-agent, branches off main using the repo's <type>/<slug> convention, implements the change, and opens a PR filled from PULL_REQUEST_TEMPLATE.md. Encodes repo-specific constraints: conventional commits (required by semantic-release), npm run lint/build as the gate, and branch+PR only so nothing reaches the deploying main branch directly. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
N/A
Summary
/fix-issuecommand for automating issue handling:ready-for-agentbased on priority.main, implements, and opens a PR.ready-for-agentlabel for issue queuing.<type>/<kebab-slug>naming from issue labels./fix-issuefor auto-pick from the queue./fix-issue 42for a specific issue.Checklist
Before submitting a pull request, please ensure that you mark these task.
npm run devandnpm run buildin the repository root and test.Original PR description
Issue
No tracking issue — infrastructure for how we pick up issues from here on.
Summary
We label issues by hand and then re-explain the same repo conventions to Claude Code every time someone picks one up — branch naming, which commit types semantic-release understands, which PR template headings to fill. That context gets rebuilt from scratch each session, and it drifts.
This adds a
/fix-issueslash command that encodes the workflow once:.claude/commands/fix-issue.md— pulls open issues labelledready-for-agent, picks one by priority (critical bugs → dev infra → tracer bullets → polish → refactors), branches offmain, implements, and opens a PR.ready-for-agentlabel on this repo so issues can be queued for pickup.<type>/<kebab-slug>branches mapped from the issue label, conventional commits (.releasercdrives versioning off them),npm run lint+npm run buildas the gate, and.github/PULL_REQUEST_TEMPLATE.mdheadings used verbatim.Usage:
/fix-issueto auto-pick from the queue, or/fix-issue 42for a specific one.Checklist
Before submitting a pull request, please ensure that you mark these task.
npm run devandnpm run buildin the repository root and test.Notes
Docs-only change — no application code touched, so
npm run dev/npm run buildwere not run and the checklist box is left unticked.lint-stageddid run on commit (prettier reformatted the markdown).Guardrails written into the command, worth a look since they're the safety story: branch + PR only, never push to
mainor merge (cd-dev.yml/deploy-staging.ymldeploy from here), one issue per run, and stop-and-ask rather than guess when an issue touches auth, middleware gating, or the BFF contract.Deliberately kept to two artifacts — the command file and the label. No workflow YAML, no
scripts/entry, no npm script; the command file is the automation./pr-reviewstays the reviewing counterpart and is referenced rather than duplicated.