class Dude::Commands::Commit

Public Instance Methods

call(id:) click to toggle source
# File lib/dude/commands/commit.rb, line 10
def call(id:)
  Dude::Git::Commit.new.call(commit_name(id))
end

Private Instance Methods

commit_name(id) click to toggle source
# File lib/dude/commands/commit.rb, line 16
def commit_name(id)
  client = ProjectManagement::Client.new
  issue_title = client.get_task_name_by_id(id)
  "[#{id}] #{issue_title}"
end