fix: use small delay before posting branch status to gitlab (#8759) (#8771)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Bob van de Vijver 2021-02-20 16:00:55 +01:00 committed by GitHub
parent 7118404981
commit e1ec04ef06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
lib/platform/gitlab/index.ts Normal file → Executable file
View file

@ -684,6 +684,9 @@ export async function setBranchStatus({
options.target_url = targetUrl;
}
try {
// give gitlab some time to create pipelines for the sha
await delay(1000);
await gitlabApi.postJson(url, { body: options });
// update status cache