Class: Avmtrf1::Git::IssueOnRepository

Inherits:
Object
  • Object
show all
Includes:
EacRubyUtils::SimpleCache
Defined in:
lib/avmtrf1/git/issue_on_repository.rb

Constant Summary collapse

CHECKS =
%w[no_branch_nor_tag branch_and_tag issue_not_found issue_closed_git_open
issue_open_git_closed issue_open_git_open issue_closed_git_closed].freeze

Instance Method Summary collapse

Constructor Details

#initialize(issue_id, refs) ⇒ IssueOnRepository

Returns a new instance of IssueOnRepository.


16
17
18
19
# File 'lib/avmtrf1/git/issue_on_repository.rb', line 16

def initialize(issue_id, refs)
  @issue_id = issue_id
  @refs = refs
end

Instance Method Details

#checkObject


21
22
23
# File 'lib/avmtrf1/git/issue_on_repository.rb', line 21

def check
  infov issue_id, "#{result.label} [#{issue ? issue.status_name : '-'}]"
end