Sha256: 6a2b7cb73c91db7b945a6a8a3f64b946a47817143d07f2c089608d2b76ff6d33
Contents?: true
Size: 511 Bytes
Versions: 26
Compression:
Stored size: 511 Bytes
Contents
class Terraspace::Cloud::Vcs::LocalGit class Gitlab < Base def commit_url "#{host}/#{full_repo}/-/commits/#{sha}" if sha end def branch_url "#{host}/#{full_repo}/-/tree/#{branch_name}" if branch_name end # Also computed in ci plugins which detects it from the ci env. # Also handling here for case when user provides PR_NUMBER and GIT_REPO outside of normal CI env. def pr_url "#{host}/#{full_repo}/-/merge_requests/#{pr_number}" if pr_number end end end
Version data entries
26 entries across 26 versions & 1 rubygems