fix(types): consolidate enhancement alias and fix update command

- Add "enhancement" to util.issueTypeAliases for consistency
- Make types.IssueType.Normalize() case-insensitive and include all aliases
- Fix update.go to normalize type before validation
- Remove duplicate type validation block in update.go

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gastown/crew/george
2026-01-16 16:02:43 -08:00
committed by Steve Yegge
parent 62dd5f8585
commit aee86dfae2
3 changed files with 15 additions and 15 deletions

View File

@@ -4,9 +4,10 @@ import "strings"
// issueTypeAliases maps shorthand type names to canonical types
var issueTypeAliases = map[string]string{
"mr": "merge-request",
"feat": "feature",
"mol": "molecule",
"mr": "merge-request",
"feat": "feature",
"mol": "molecule",
"enhancement": "feature",
}
// NormalizeIssueType expands type aliases to their canonical forms.