fix: assignee output #74
No reviewers
Labels
No labels
bug
ci
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
performance
priority
P0
priority
P1
priority
P2
question
refactor
size
L
size
M
size
S
size
XL
size
XS
tests
trivial
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/paso!74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/assignee-output"
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?
Closes: #72
PR Summary (auto-generated)
DRY violation: The pattern of creating a
[]styles.Detailslice and callingstyles.RenderSuccessWithDetailsis duplicated acrosstask/create.go,project/create.go,label/create.go, and nowassignee/create.go.This entire
PrettyPrintmethod implementation is nearly identical in all these files:task/create.go:234-252project/create.go:155-172label/create.go:134-143assignee/create.go:95-102Consider extracting a helper function or using struct field reflection to generate the details slice automatically, reducing code duplication and maintenance burden.
Redundant validation: The
parseCreateFlagsfunction validates thatnameis not empty, but this check is redundant because:cmd.MarkFlagRequired("name")This validation logic is dead code that can never be reached with an empty name. Either remove this function entirely or remove the redundant check.