mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 01:18:27 +00:00
fix(gitlab): change pending to running state (#1971)
* fix(gitlab-client): change pending to running state * change default state
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user