Commit 9406331e authored by James Edwards-Jones's avatar James Edwards-Jones Committed by Grzegorz Bizon

Add GitHub Required Status Checks compatability

Uses fixed context of 'gitlab/ci' instead of including the refname.
This can introduce some ambiguity, as pipelines for different refs
might include different jobs and overwrite previous statuses.
parent b37558cd
...@@ -14,7 +14,7 @@ class GithubService ...@@ -14,7 +14,7 @@ class GithubService
end end
def context def context
"ci/gitlab/#{@ref_name}".truncate(255) "ci/gitlab"
end end
def description def description
......
...@@ -87,7 +87,7 @@ describe GithubService::StatusMessage do ...@@ -87,7 +87,7 @@ describe GithubService::StatusMessage do
end end
specify 'context' do specify 'context' do
expect(subject.context).to eq "ci/gitlab/#{pipeline.ref}" expect(subject.context).to eq "ci/gitlab"
end end
context 'blocked pipeline' do context 'blocked pipeline' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment