Class: Jiminy::Reporting::CIProviders::CircleCI::Configuration
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
ProviderConfiguration::TEMPLATE_METHOD_PROC
Instance Method Summary
collapse
Instance Method Details
#github_token ⇒ Object
41
42
43
|
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 41
def github_token
ensure_env_variable("GITHUB_TOKEN")
end
|
#pr_number ⇒ Object
29
30
31
|
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 29
def pr_number
match_data[:pr_number]
end
|
#project_reponame ⇒ Object
37
38
39
|
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 37
def project_reponame
match_data[:reponame]
end
|
#project_username ⇒ Object
33
34
35
|
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 33
def project_username
match_data[:username]
end
|
#repo_path ⇒ Object
25
26
27
|
# File 'lib/jiminy/reporting/ci_providers/circle_ci.rb', line 25
def repo_path
[project_username, project_reponame].join("/")
end
|