feat: add Nit-Bundle type to issue template hook #139
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom!139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "137-add-nit-bundle-type-to-check-issue-templ"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
Nit-Bundleas a recognized issue type in thecheck-issue-template.shPreToolUse hook, so nit-bundle issues validate againsttemplate-issue-nit-bundleinstead of falling through to the feature template.Changes
hooks/check-issue-template.sh— AddedNit-Bundle|nit-bundlecase to the type-to-template mapping, before the*fallback. Aligned spacing on existing cases for readability.Test Plan
### Type\nNit-Bundlein the body — hook should fetchtemplate-issue-nit-bundleand validate against it.### Type\nBug— should still map totemplate-issue-bug(no regression).template-issue-feature.Review Checklist
hooks/check-issue-template.sh*fallback)template-issue-{type})Related
Self-Review: LGTM
Diff: 1 file, +3/-2 lines
Findings: None. The change is a single case addition following the existing pattern. Spacing realignment on adjacent lines keeps the assignment operators visually aligned. No logic changes to existing paths. Mergeable with no conflicts.
PR #139 Review
DOMAIN REVIEW
Tech stack: Bash shell script (PreToolUse hook for Claude Code).
Correctness:
Nit-Bundle|nit-bundle)case is syntactically correct and placed before the*fallback, preserving case statement semantics.template-issue-nit-bundleexists in pal-e-docs (id: 628, taggedactive), so the hook will successfully fetch and validate against it.template-issue-{type}is followed consistently.;;terminators is a reasonable readability improvement.Header comment drift (NIT):
Lines 5-8 of the file list the recognized types:
The new
Nit-Bundletype is not reflected here. The doc block is now stale -- it will mislead anyone reading the header to understand what types this hook recognizes.BLOCKERS
None. This is a 3-line change to a shell case statement. No new functionality requiring tests (the hook's existing logic is unchanged -- only the mapping table gains an entry). No user input validation concerns (the
ISSUE_TYPEis extracted from the agent's own issue body, matched against fixed strings). No secrets. No DRY violations.NITS
Stale header comment -- Lines 5-8 should include
Nit-Bundle -> template-issue-nit-bundlein the type mapping documentation. This is the kind of drift that compounds -- every new type addition that skips the header makes it less trustworthy.Inconsistent alignment on Bug line -- The
Bug|bug)case (line 34) was not re-aligned with the new column width. After the change,Bug|bug)uses tighter spacing whileSpike|spike)andNit-Bundle|nit-bundle)are padded to align;;terminators. Either align all four cases or leave the original spacing. The current state is a mix.SOP COMPLIANCE
137-add-nit-bundle-type-to-check-issue-templ-- starts with137)Closes #137but does not referenceplan-pal-e-agency. Pertemplate-pr-body: "Both are required. The Forgejo issue is the spec; the plan slug is the strategic context."PROCESS OBSERVATIONS
trap 'exit 0' ERR). The template has been verified to exist.plan-pal-e-agency, but the PR does not make that connection explicit.VERDICT: APPROVED
The code change is correct, minimal, and safe. The two nits (stale header comment, inconsistent alignment) and the missing plan slug in Related are non-blocking. The header comment nit should be tracked for the next nit-bundle on this repo.