🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
Create a new issue in Linear. Use when the user says "create linear issue", "file linear ticket", or "add to linear".
Create a new issue in Linear using schpet/linear-cli.
Verify the Linear CLI is available:
linear --version 2>/dev/null || echo "LINEAR_CLI_MISSING"
Gather issue details. If $ARGUMENTS is provided, use it as the title. Determine:
$ARGUMENTS
ENG
.linear.toml
bug
feature
Show the proposed issue to the user for confirmation before creating:
## Proposed Linear Issue Title: <title> Team: <team> Priority: <priority> Labels: <labels> Description: <description> Create this issue? (yes/no)
Create the issue in Linear:
linear issue create \ -t "<title>" \ -d "<description>" \ --team "<team-key>" \ --priority <priority-number> \ --label "<label>" \ --no-interactive
For multiple labels, repeat the flag: --label "bug" --label "high-priority"
--label "bug" --label "high-priority"
Capture the returned issue ID (e.g., ENG-456).
ENG-456
Get the issue URL for reference:
linear issue url ENG-456
Report:
Created: ENG-456 — <title> Priority: <priority> URL: <linear-issue-url> Run /linear-sync to update the local snapshot.
linear issue create --help