Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/google/go-github/v59 to v62 in go.mod (main) - autoclosed #4910

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os/exec"
"strings"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
)

type GithubClient struct {
Expand Down
2 changes: 1 addition & 1 deletion e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/runatlantis/atlantis/e2e
go 1.23.0

require (
github.com/google/go-github/v59 v59.0.0
github.com/google/go-github/v62 v62.0.0
github.com/hashicorp/go-multierror v1.1.1
github.com/xanzy/go-gitlab v0.109.0
)
Expand Down
4 changes: 2 additions & 2 deletions e2e/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-github/v59 v59.0.0 h1:7h6bgpF5as0YQLLkEiVqpgtJqjimMYhBkD4jT5aN3VA=
github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv40oDjhV/gH6wM=
github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwMmHdhl4=
github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4=
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=
Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/go-playground/validator/v10 v10.22.1
github.com/go-test/deep v1.1.1
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/google/go-github/v59 v59.0.0
github.com/google/go-github/v62 v62.0.0
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/google/uuid v1.6.0
github.com/gorilla/mux v1.8.1
Expand Down Expand Up @@ -62,6 +62,8 @@ require (

require github.com/twmb/murmur3 v1.1.8 // indirect

require github.com/google/go-github/v59 v59.0.0

require (
dario.cat/mergo v1.0.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
Expand All @@ -86,7 +88,6 @@ require (
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-github/v62 v62.0.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/events/events_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"
"strings"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/mcdafydd/go-azuredevops/azuredevops"
"github.com/microcosm-cc/bluemonday"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/events/events_controller_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/hashicorp/go-version"
. "github.com/petergtz/pegomock/v4"

Expand Down
2 changes: 1 addition & 1 deletion server/controllers/events/events_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"strings"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/mcdafydd/go-azuredevops/azuredevops"
. "github.com/petergtz/pegomock/v4"
events_controllers "github.com/runatlantis/atlantis/server/controllers/events"
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/events/github_request_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"io"
"net/http"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
)

//go:generate pegomock generate --package mocks -o mocks/mock_github_request_validator.go GithubRequestValidator
Expand Down
2 changes: 1 addition & 1 deletion server/events/apply_command_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
. "github.com/petergtz/pegomock/v4"
"github.com/runatlantis/atlantis/server/core/db"
"github.com/runatlantis/atlantis/server/core/locking"
Expand Down
2 changes: 1 addition & 1 deletion server/events/command_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"
"strconv"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/mcdafydd/go-azuredevops/azuredevops"
"github.com/pkg/errors"
"github.com/runatlantis/atlantis/server/core/config/valid"
Expand Down
2 changes: 1 addition & 1 deletion server/events/command_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/runatlantis/atlantis/server/logging"
"github.com/runatlantis/atlantis/server/metrics"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
. "github.com/petergtz/pegomock/v4"
lockingmocks "github.com/runatlantis/atlantis/server/core/locking/mocks"
"github.com/runatlantis/atlantis/server/events"
Expand Down
2 changes: 1 addition & 1 deletion server/events/event_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
giteasdk "code.gitea.io/sdk/gitea"

"github.com/go-playground/validator/v10"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
lru "github.com/hashicorp/golang-lru/v2"
"github.com/mcdafydd/go-azuredevops/azuredevops"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion server/events/event_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"strings"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/mcdafydd/go-azuredevops/azuredevops"
"github.com/mohae/deepcopy"
"github.com/runatlantis/atlantis/server/events"
Expand All @@ -47,7 +47,7 @@
}

func TestParseGithubRepo(t *testing.T) {
r, err := parser.ParseGithubRepo(&Repo)

Check failure on line 50 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Tests

cannot use &Repo (value of type *"github.com/google/go-github/v59/github".Repository) as *"github.com/google/go-github/v62/github".Repository value in argument to parser.ParseGithubRepo

Check failure on line 50 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Linting

cannot use &Repo (value of type *"github.com/google/go-github/v59/github".Repository) as *"github.com/google/go-github/v62/github".Repository value in argument to parser.ParseGithubRepo
Ok(t, err)
Equals(t, models.Repo{
Owner: "owner",
Expand All @@ -65,7 +65,7 @@
func TestParseGithubIssueCommentEvent(t *testing.T) {
logger := logging.NewNoopLogger(t)
comment := github.IssueCommentEvent{
Repo: &Repo,

Check failure on line 68 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Tests

cannot use &Repo (value of type *"github.com/google/go-github/v59/github".Repository) as *"github.com/google/go-github/v62/github".Repository value in struct literal

Check failure on line 68 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Linting

cannot use &Repo (value of type *"github.com/google/go-github/v59/github".Repository) as *"github.com/google/go-github/v62/github".Repository value in struct literal
Issue: &github.Issue{
Number: github.Int(1),
User: &github.User{Login: github.String("issue_user")},
Expand Down Expand Up @@ -136,7 +136,7 @@
_, _, _, _, _, err = parser.ParseGithubPullEvent(logger, &testEvent)
ErrEquals(t, "sender.login is null", err)

actPull, evType, actBaseRepo, actHeadRepo, actUser, err := parser.ParseGithubPullEvent(logger, &PullEvent)

Check failure on line 139 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Tests

cannot use &PullEvent (value of type *"github.com/google/go-github/v59/github".PullRequestEvent) as *"github.com/google/go-github/v62/github".PullRequestEvent value in argument to parser.ParseGithubPullEvent

Check failure on line 139 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Linting

cannot use &PullEvent (value of type *"github.com/google/go-github/v59/github".PullRequestEvent) as *"github.com/google/go-github/v62/github".PullRequestEvent value in argument to parser.ParseGithubPullEvent
Ok(t, err)
expBaseRepo := models.Repo{
Owner: "owner",
Expand Down Expand Up @@ -311,7 +311,7 @@
_, _, _, err = parser.ParseGithubPull(logger, &testPull)
ErrEquals(t, "number is null", err)

pullRes, actBaseRepo, actHeadRepo, err := parser.ParseGithubPull(logger, &Pull)

Check failure on line 314 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Tests

cannot use &Pull (value of type *"github.com/google/go-github/v59/github".PullRequest) as *"github.com/google/go-github/v62/github".PullRequest value in argument to parser.ParseGithubPull

Check failure on line 314 in server/events/event_parser_test.go

View workflow job for this annotation

GitHub Actions / Linting

cannot use &Pull (value of type *"github.com/google/go-github/v59/github".PullRequest) as *"github.com/google/go-github/v62/github".PullRequest value in argument to parser.ParseGithubPull (typecheck)
Ok(t, err)
expBaseRepo := models.Repo{
Owner: "owner",
Expand Down
2 changes: 1 addition & 1 deletion server/events/mocks/mock_event_parsing.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/events/mocks/mock_github_pull_getter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/events/plan_command_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
. "github.com/petergtz/pegomock/v4"
"github.com/runatlantis/atlantis/server/core/db"
"github.com/runatlantis/atlantis/server/events"
Expand Down
2 changes: 1 addition & 1 deletion server/events/vcs/github_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/pkg/errors"
"github.com/runatlantis/atlantis/server/events/command"
"github.com/runatlantis/atlantis/server/events/models"
Expand Down
2 changes: 1 addition & 1 deletion server/events/vcs/github_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/bradleyfalzon/ghinstallation/v2"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion server/events/vcs/instrumented_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package vcs
import (
"strconv"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/runatlantis/atlantis/server/events/models"
"github.com/runatlantis/atlantis/server/logging"
"github.com/runatlantis/atlantis/server/metrics"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion testdrive/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"strings"
"time"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
)

var githubUsername string
Expand Down Expand Up @@ -57,7 +57,7 @@
func (g *Client) CreateWebhook(ownerName string, repoName string, hookURL string) error {
atlantisHook := &github.Hook{
Events: []string{"issue_comment", "pull_request", "pull_request_review", "push"},
Config: map[string]interface{}{

Check failure on line 60 in testdrive/github.go

View workflow job for this annotation

GitHub Actions / e2e-github

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *github.HookConfig value in struct literal

Check failure on line 60 in testdrive/github.go

View workflow job for this annotation

GitHub Actions / e2e-gitlab

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *github.HookConfig value in struct literal

Check failure on line 60 in testdrive/github.go

View workflow job for this annotation

GitHub Actions / Tests

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *github.HookConfig value in struct literal

Check failure on line 60 in testdrive/github.go

View workflow job for this annotation

GitHub Actions / Linting

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *github.HookConfig value in struct literal (typecheck)

Check failure on line 60 in testdrive/github.go

View workflow job for this annotation

GitHub Actions / Linting

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *github.HookConfig value in struct literal) (typecheck)
"url": hookURL,
"content_type": "json",
},
Expand Down
2 changes: 1 addition & 1 deletion testdrive/testdrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"time"

"github.com/briandowns/spinner"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v62/github"
"github.com/mitchellh/colorstring"
"github.com/pkg/errors"
)
Expand Down
Loading