Class: Waff::Commands::Take

Inherits:
Command
  • Object
show all
Defined in:
lib/waff/commands/take.rb

Instance Attribute Summary

Attributes inherited from Command

#params

Instance Method Summary collapse

Methods inherited from Command

call, #github_repo

Instance Method Details

#call(params) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/waff/commands/take.rb', line 6

def call params
  issue_number = params.shift
  issue = github_repo.get_issue issue_number

  issue.create_local_branch!
  issue.assign_to_self!
  issue.mark_in_progress!
end