mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 20:08:37 +00:00
Fix bug with GitLab approvals not being required
Updated to a patched version of go-gitlab with the correct fields set.
This commit is contained in:
2
Gopkg.lock
generated
2
Gopkg.lock
generated
@@ -99,7 +99,7 @@
|
||||
branch = "master"
|
||||
name = "github.com/lkysow/go-gitlab"
|
||||
packages = ["."]
|
||||
revision = "5aba7769280ffa5408f98e1b95290989cc1428c5"
|
||||
revision = "fcd13266e57eb071cbedfe8efc7969a7bc4c8f22"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/magiconair/properties"
|
||||
|
||||
@@ -72,7 +72,7 @@ func (g *GitlabClient) PullIsApproved(repo models.Repo, pull models.PullRequest)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if approvals.ApprovalsMissing > 0 {
|
||||
if approvals.ApprovalsLeft > 0 {
|
||||
return false, nil
|
||||
}
|
||||
return true, nil
|
||||
|
||||
2
vendor/github.com/lkysow/go-gitlab/merge_requests.go
generated
vendored
2
vendor/github.com/lkysow/go-gitlab/merge_requests.go
generated
vendored
@@ -114,7 +114,7 @@ type MergeRequestApprovals struct {
|
||||
UpdatedAt *time.Time `json:"updated_at"`
|
||||
MergeStatus string `json:"merge_status"`
|
||||
ApprovalsRequired int `json:"approvals_required"`
|
||||
ApprovalsMissing int `json:"approvals_missing"`
|
||||
ApprovalsLeft int `json:"approvals_left"`
|
||||
ApprovedBy []struct {
|
||||
User struct {
|
||||
Name string `json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user