Class: Rubyists::Linear::CLI::Issue::Create
- Inherits:
-
Object
- Object
- Rubyists::Linear::CLI::Issue::Create
- Includes:
- CommonOptions, Rubyists::Linear::CLI::Issue, SemanticLogger::Loggable
- Defined in:
- lib/linear/commands/issue/create.rb
Overview
The Create class is a Dry::CLI::Command to create a new issue
Constant Summary
Constants included from Rubyists::Linear::CLI::Issue
Constants included from WhatFor
WhatFor::ALLOWED_PR_TYPES, WhatFor::PR_TYPES, WhatFor::PR_TYPE_SELECTIONS
Instance Method Summary collapse
Methods included from Rubyists::Linear::CLI::Issue
#attach_project, #cancel_issue, #close_issue, #create_pr!, #gimme_da_issue!, #issue_comment, #issue_pr, #make_da_issue!, #update_issue
Methods included from SubCommands
#ask_for_team, #branch_for, #choose_a_team!, #current_branch, #default_branch, #git, included, #prompt, #pull_or_push_new_branch!
Methods included from WhatFor
#ask_for_projects, #ask_or_edit, #cancelled_state_for, #comment_for, #completed_state_for, #description_for, #editor_for, #labels_for, #pr_description_for, #pr_scope_for, #pr_title_for, #pr_type_for, #project_for, #project_scores, #reason_for, #team_for, #title_for
Methods included from CommonOptions
Instance Method Details
#call(**options) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/linear/commands/issue/create.rb', line 31 def call(**) logger.debug('Creating issue', options:) issue = make_da_issue!(**) logger.debug('Issue created', issue:) prompt.yes?('Do you want to take this issue?') && gimme_da_issue!(issue.id, me: User.me) display issue, Rubyists::Linear::CLI::Issue::Develop.new.call(issue_id: issue.id, **) if [:develop] end |