class CreateGithubRelease::Assertions::ReleasePrLabelExists
@api public
Assert that the release tag does not exist in the local repository
def assert
-
(SystemExit)
- if the assertion fails
Returns:
-
(void)
-
def assert return if project.release_pr_label.nil? print "Checking that release pr label '#{project.release_pr_label}' exists..." if labels.include?(project.release_pr_label) puts 'OK' else error "Release pr label '#{project.release_pr_label}' does not exist" end end
def labels
- Api: - private
Returns:
-
(Array
- The list of labels for the current repository)
def labels output = `gh label list` error 'Could not list pr labels' unless $CHILD_STATUS.success? output.lines.map(&:chomp).map { |line| line.split("\t").first } end