mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 23:48:20 +00:00
fix(deps): update module github.com/google/go-github/v49 to v50 (#3074)
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
"os/exec"
|
||||
"time"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
type E2ETester struct {
|
||||
|
||||
@@ -16,7 +16,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
type GithubClient struct {
|
||||
|
||||
@@ -3,12 +3,16 @@ module github.com/runatlantis/atlantis/e2e
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/google/go-github/v49 v49.1.0
|
||||
github.com/google/go-github/v50 v50.0.0
|
||||
github.com/hashicorp/go-multierror v1.1.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/golang/protobuf v1.3.2 // indirect
|
||||
github.com/google/go-querystring v1.1.0 // indirect
|
||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||
golang.org/x/crypto v0.1.0 // indirect
|
||||
golang.org/x/net v0.1.0 // indirect
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be // indirect
|
||||
google.golang.org/appengine v1.6.7 // indirect
|
||||
)
|
||||
|
||||
19
e2e/go.sum
19
e2e/go.sum
@@ -1,7 +1,10 @@
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
||||
github.com/google/go-github/v49 v49.1.0 h1:LFkMgawGQ8dfzWLH/rNE0b3u1D3n6/dw7ZmrN3b+YFY=
|
||||
github.com/google/go-github/v49 v49.1.0/go.mod h1:MUUzHPrhGniB6vUKa27y37likpipzG+BXXJbG04J334=
|
||||
github.com/google/go-github/v50 v50.0.0 h1:gdO1AeuSZZK4iYWwVbjni7zg8PIQhp7QfmPunr016Jk=
|
||||
github.com/google/go-github/v50 v50.0.0/go.mod h1:Ev4Tre8QoKiolvbpOSG3FIi4Mlon3S2Nt9W5JYqKiwA=
|
||||
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
|
||||
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
@@ -9,6 +12,18 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY
|
||||
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
|
||||
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.1.0 h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU=
|
||||
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
|
||||
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||
golang.org/x/net v0.1.0 h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0=
|
||||
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=
|
||||
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
|
||||
"fmt"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
)
|
||||
|
||||
|
||||
2
go.mod
2
go.mod
@@ -15,7 +15,7 @@ require (
|
||||
github.com/go-redis/redis/v9 v9.0.0-rc.2
|
||||
github.com/go-test/deep v1.1.0
|
||||
github.com/golang-jwt/jwt/v4 v4.4.3
|
||||
github.com/google/go-github/v49 v49.1.0
|
||||
github.com/google/go-github/v50 v50.0.0
|
||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
|
||||
github.com/google/uuid v1.3.0
|
||||
github.com/gorilla/mux v1.8.0
|
||||
|
||||
4
go.sum
4
go.sum
@@ -189,8 +189,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/go-github/v45 v45.2.0 h1:5oRLszbrkvxDDqBCNj2hjDZMKmvexaZ1xw/FCD+K3FI=
|
||||
github.com/google/go-github/v45 v45.2.0/go.mod h1:FObaZJEDSTa/WGCzZ2Z3eoCDXWJKMenWWTrd8jrta28=
|
||||
github.com/google/go-github/v49 v49.1.0 h1:LFkMgawGQ8dfzWLH/rNE0b3u1D3n6/dw7ZmrN3b+YFY=
|
||||
github.com/google/go-github/v49 v49.1.0/go.mod h1:MUUzHPrhGniB6vUKa27y37likpipzG+BXXJbG04J334=
|
||||
github.com/google/go-github/v50 v50.0.0 h1:gdO1AeuSZZK4iYWwVbjni7zg8PIQhp7QfmPunr016Jk=
|
||||
github.com/google/go-github/v50 v50.0.0/go.mod h1:Ev4Tre8QoKiolvbpOSG3FIi4Mlon3S2Nt9W5JYqKiwA=
|
||||
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
|
||||
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
|
||||
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
"github.com/microcosm-cc/bluemonday"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/hashicorp/go-version"
|
||||
. "github.com/petergtz/pegomock"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
//go:generate pegomock generate -m --package mocks -o mocks/mock_github_request_validator.go GithubRequestValidator
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
. "github.com/petergtz/pegomock"
|
||||
"github.com/runatlantis/atlantis/server/core/db"
|
||||
"github.com/runatlantis/atlantis/server/core/locking"
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/runatlantis/atlantis/server/core/config/valid"
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/runatlantis/atlantis/server/logging"
|
||||
"github.com/runatlantis/atlantis/server/metrics"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
. "github.com/petergtz/pegomock"
|
||||
lockingmocks "github.com/runatlantis/atlantis/server/core/locking/mocks"
|
||||
"github.com/runatlantis/atlantis/server/events"
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/runatlantis/atlantis/server/events/command"
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
"github.com/mohae/deepcopy"
|
||||
"github.com/runatlantis/atlantis/server/events"
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/petergtz/pegomock"
|
||||
"reflect"
|
||||
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
func AnyPtrToGithubIssueCommentEvent() *github.IssueCommentEvent {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/petergtz/pegomock"
|
||||
"reflect"
|
||||
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
func AnyPtrToGithubPullRequest() *github.PullRequest {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/petergtz/pegomock"
|
||||
"reflect"
|
||||
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
func AnyPtrToGithubPullRequestEvent() *github.PullRequestEvent {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/petergtz/pegomock"
|
||||
"reflect"
|
||||
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
func AnyPtrToGithubRepository() *github.Repository {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
azuredevops "github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
pegomock "github.com/petergtz/pegomock"
|
||||
models "github.com/runatlantis/atlantis/server/events/models"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
pegomock "github.com/petergtz/pegomock"
|
||||
models "github.com/runatlantis/atlantis/server/events/models"
|
||||
"reflect"
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/runatlantis/atlantis/server/events/command"
|
||||
"github.com/runatlantis/atlantis/server/events/models"
|
||||
@@ -330,7 +330,7 @@ func (g *GithubClient) PullIsApproved(repo models.Repo, pull models.PullRequest)
|
||||
return models.ApprovalStatus{
|
||||
IsApproved: true,
|
||||
ApprovedBy: *review.User.Login,
|
||||
Date: *review.SubmittedAt,
|
||||
Date: review.SubmittedAt.Time,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/bradleyfalzon/ghinstallation/v2"
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/runatlantis/atlantis/server/events/models"
|
||||
"github.com/runatlantis/atlantis/server/logging"
|
||||
"github.com/runatlantis/atlantis/server/metrics"
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/petergtz/pegomock"
|
||||
"reflect"
|
||||
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
func AnyPtrToGithubPullRequest() *github.PullRequest {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
github "github.com/google/go-github/v49/github"
|
||||
github "github.com/google/go-github/v50/github"
|
||||
pegomock "github.com/petergtz/pegomock"
|
||||
models "github.com/runatlantis/atlantis/server/events/models"
|
||||
"reflect"
|
||||
|
||||
2
server/events/vcs/testdata/fixtures.go
vendored
2
server/events/vcs/testdata/fixtures.go
vendored
@@ -22,7 +22,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/golang-jwt/jwt/v4"
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
)
|
||||
|
||||
var githubUsername string
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/briandowns/spinner"
|
||||
"github.com/google/go-github/v49/github"
|
||||
"github.com/google/go-github/v50/github"
|
||||
"github.com/mitchellh/colorstring"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user