feat(types): add "enhancement" as alias for "feature" type

Support --type enhancement as an alias for --type feature when creating
issues. The normalization happens before validation to ensure consistency
across all code paths.

Closes gt-hzanoe

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gastown/crew/george
2026-01-16 15:44:33 -08:00
committed by Steve Yegge
parent 99d6592207
commit 9ecdc00664
6 changed files with 22 additions and 8 deletions

View File

@@ -108,7 +108,7 @@ func CreateIssueFromFormValues(ctx context.Context, s storage.Storage, fv *creat
AcceptanceCriteria: fv.AcceptanceCriteria,
Status: types.StatusOpen,
Priority: fv.Priority,
IssueType: types.IssueType(fv.IssueType),
IssueType: types.IssueType(fv.IssueType).Normalize(),
Assignee: fv.Assignee,
ExternalRef: externalRefPtr,
CreatedBy: getActorWithGit(), // GH#748: track who created the issue