feat(issue): add --priority flag to lc issue create - #277
Merged
Merged
Conversation
Accepts none/urgent/high/medium/low (case-insensitive), maps to Linear integers 0–4 via a shared LinearCli.CLI.Priority parser module designed for reuse by EXT-65 (issue update). Priority is omitted from the GraphQL mutation when not supplied. JSON output includes priority metadata. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--priority PRIORITYoption tolc issue create, acceptingnone,urgent,high,medium,low(case-insensitive), mapped to Linear integers 0–4LinearCli.CLI.Priorityshared parser module (designed for reuse by EXT-65lc issue update --priority)issueCreatemutation when not supplied;--output jsonincludes priority metadataChanges
app/lib/linear_cli/cli/priority.ex— new shared priority name→integer parserapp/lib/linear_cli/cli.ex—--priorityoption added to issue create subcommand specapp/lib/linear_cli/cli/commands/issues/create.ex— passespriority:through to creation optsapp/lib/linear_cli/cli/issue/creation.ex—maybe_put_priority/2omits field when nilapp/lib/linear_cli/linear/issue.ex—:priorityargument on:createaction;maybe_put_priority/2in GraphQL input builderdocuments/ash-domain-erd.adoc— updatedcreate_issuerow to reflectpriority?fieldTest plan
mix test app/test/linear_cli/cli/priority_test.exs— 8 unit tests for the shared parser (all pass)mix test app/test/linear_cli/cli/commands/issues/create_test.exs— 6 new integration tests covering priority happy paths, nil omission, invalid value rejection, case-insensitivity, JSON outputmix test app/test/linear_cli/linear/issue_test.exs— 2 new tests confirming GraphQL input includes/omits"priority"correctlyCloses EXT-66
🤖 Generated with Claude Code