Class: Jiminy::Reporting::CIProviders::CircleCI::Configuration

Inherits:
ProviderConfiguration show all
Defined in:
lib/jiminy/reporting/ci_providers/circle_ci.rb

Overview

Not currently used, but kept for future use.

Constant Summary collapse

PR_URL_MATCHERS =
%r{github\.com/
(?<username>[\w\-_]+)/
(?<reponame>[\w\-_]+)/
pull/
(?<pr_number>\d+)}x.freeze

Constants inherited from ProviderConfiguration

ProviderConfiguration::TEMPLATE_METHOD_PROC

Instance Method Summary collapse

Instance Method Details

#github_tokenObject



41
42
43
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 41

def github_token
  ensure_env_variable("GITHUB_TOKEN")
end

#pr_numberObject



29
30
31
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 29

def pr_number
  match_data[:pr_number]
end

#project_reponameObject



37
38
39
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 37

def project_reponame
  match_data[:reponame]
end

#project_usernameObject



33
34
35
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 33

def project_username
  match_data[:username]
end

#repo_pathObject



25
26
27
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 25

def repo_path
  [project_username, project_reponame].join("/")
end