Skip to content

feat(issue-create): add -y/--yes to skip interactive prompts - #205

Merged
ruby-automation merged 2 commits into
mainfrom
EXT-22-yes-flag-issue-create
Sep 3, 2026
Merged

feat(issue-create): add -y/--yes to skip interactive prompts#205
ruby-automation merged 2 commits into
mainfrom
EXT-22-yes-flag-issue-create

Conversation

@ruby-automation

Copy link
Copy Markdown
Contributor

Summary

  • Adds -y/--yes flag to lc issue create that skips all interactive prompts
  • Title and description are required when --yes is given (exit 22 if missing)
  • Team auto-selects when the user belongs to exactly one team; errors with a clear message when multiple teams exist and --team was not specified
  • Labels default to none (no prompt, no API roundtrip)
  • Project resolves by exact match (score 100) only; ignored otherwise (no prompt)
  • maybe_take self-assigns without prompting, matching the prompt's own default: true behavior
  • Adds Projects.project_for_strict/2 for prompt-free exact-match project lookup

Test plan

  • -y with all required flags creates and self-assigns (no prompts in output)
  • -y without --title → exit 22 with clear message
  • -y without --description → exit 22 with clear message
  • -y without --team (multiple teams) → exit 22 with clear message
  • -y with --project exact match uses the correct project id
  • All existing issue create tests continue to pass

Closes https://linear.app/the-rubyists/issue/EXT-22

🤖 Generated with Claude Code

ruby-automation and others added 2 commits September 3, 2026 11:49
Under `--yes`, `lc issue create` resolves without any interactive
prompts: title and description are required (error if absent), team
auto-selects when there is exactly one (errors if multiple), labels
default to none, project resolves by exact match only.

The `maybe_take` self-assignment step also runs non-interactively
under `--yes`, matching the prompt's own default-true behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ruby-automation
ruby-automation force-pushed the EXT-22-yes-flag-issue-create branch from b014cb2 to db3e7af Compare September 3, 2026 15:49
@ruby-automation
ruby-automation enabled auto-merge (squash) September 3, 2026 15:49
@ruby-automation
ruby-automation merged commit f798546 into main Sep 3, 2026
3 checks passed
@ruby-automation
ruby-automation deleted the EXT-22-yes-flag-issue-create branch September 3, 2026 15:50
This was referenced Sep 3, 2026
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