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
end
def context
"ci/gitlab/#{@ref_name}".truncate(255)
"ci/gitlab"
end
def description
......
......@@ -87,7 +87,7 @@ describe GithubService::StatusMessage do
end
specify 'context' do
expect(subject.context).to eq "ci/gitlab/#{pipeline.ref}"
expect(subject.context).to eq "ci/gitlab"
end
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