Module: TempestTime::Helpers::GitHelper

Included in:
Command
Defined in:
lib/tempest_time/helpers/git_helper.rb

Instance Method Summary collapse

Instance Method Details

#automatic_issueObject



6
7
8
9
10
# File 'lib/tempest_time/helpers/git_helper.rb', line 6

def automatic_issue
  issue = /[A-Z]+-\d+/.match(Git.open(Dir.pwd).current_branch)
  abort('Issue not found for this branch. Please specify.') unless issue
  issue.to_s.upcase
end