From 898118501c55167017bfb17618bad81ac746fccc Mon Sep 17 00:00:00 2001 From: Frank <639906+syphernl@users.noreply.github.com> Date: Mon, 7 Mar 2022 17:24:26 +0100 Subject: [PATCH] fix(gitlab): change `pending` to `running` state (#1971) * fix(gitlab-client): change pending to running state * change default state --- server/events/vcs/gitlab_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/events/vcs/gitlab_client.go b/server/events/vcs/gitlab_client.go index 623ba8cd5..d202141fd 100644 --- a/server/events/vcs/gitlab_client.go +++ b/server/events/vcs/gitlab_client.go @@ -232,10 +232,10 @@ func (g *GitlabClient) PullIsMergeable(repo models.Repo, pull models.PullRequest // UpdateStatus updates the build status of a commit. func (g *GitlabClient) UpdateStatus(repo models.Repo, pull models.PullRequest, state models.CommitStatus, src string, description string, url string) error { - gitlabState := gitlab.Failed + gitlabState := gitlab.Pending switch state { case models.PendingCommitStatus: - gitlabState = gitlab.Pending + gitlabState = gitlab.Running case models.FailedCommitStatus: gitlabState = gitlab.Failed case models.SuccessCommitStatus: