It's not used as a public API right now, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7034#note_17522443
This commit is contained in:
parent
fb19d9f4e2
commit
f4b9de38ed
1 changed files with 4 additions and 5 deletions
|
@ -51,7 +51,6 @@ class Commit
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_accessor :raw
|
attr_accessor :raw
|
||||||
attr_reader :statuses
|
|
||||||
|
|
||||||
def initialize(raw_commit, project)
|
def initialize(raw_commit, project)
|
||||||
raise "Nil as raw commit passed" unless raw_commit
|
raise "Nil as raw commit passed" unless raw_commit
|
||||||
|
@ -236,12 +235,12 @@ class Commit
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_for(ref)
|
def status_for(ref)
|
||||||
if statuses.key?(ref)
|
if @statuses.key?(ref)
|
||||||
statuses[ref]
|
@statuses[ref]
|
||||||
elsif ref
|
elsif ref
|
||||||
statuses[ref] = pipelines.where(ref: ref).status
|
@statuses[ref] = pipelines.where(ref: ref).status
|
||||||
else
|
else
|
||||||
statuses[ref] = pipelines.status
|
@statuses[ref] = pipelines.status
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue