Skip to content

refactor: consolidate duplicated CLI enums with api types - #17

Merged
sachiniyer merged 1 commit into
mainfrom
siyer/unify-enums
Feb 13, 2026
Merged

refactor: consolidate duplicated CLI enums with api types#17
sachiniyer merged 1 commit into
mainfrom
siyer/unify-enums

Conversation

@sachiniyer

Copy link
Copy Markdown
Contributor

Add Clone and clap::ValueEnum to BugReviewState and BugDismissalReason
in api/types.rs so they work directly as CLI arguments. Delete the
duplicated ReviewState, DismissalReason, and BugStatus enums from
commands/bugs.rs (~60 lines removed). Update list_bugs to accept
Option<&BugReviewState> instead of Option<&str>.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

sachiniyer commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

@sachiniyer
sachiniyer force-pushed the siyer/typed-review-request branch from 9542ca6 to 6e234ea Compare February 13, 2026 05:45
@sachiniyer
sachiniyer marked this pull request as ready for review February 13, 2026 05:47
@graphite-app
graphite-app Bot changed the base branch from siyer/typed-review-request to graphite-base/17 February 13, 2026 05:52
@graphite-app
graphite-app Bot changed the base branch from graphite-base/17 to main February 13, 2026 05:57
Add Clone and clap::ValueEnum to BugReviewState and BugDismissalReason
in api/types.rs so they work directly as CLI arguments. Delete the
duplicated ReviewState, DismissalReason, and BugStatus enums from
commands/bugs.rs (~60 lines removed). Update list_bugs to accept
Option<&BugReviewState> instead of Option<&str>.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sachiniyer
sachiniyer merged commit c25f024 into main Feb 13, 2026
11 checks passed

Copy link
Copy Markdown
Contributor Author

Merge activity

@sachiniyer
sachiniyer deleted the siyer/unify-enums branch February 13, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant