Skip to content

Commit e498244

Browse files
nitrocoderenovate[bot]
authored andcommitted
chore(deps): upgrade go-github 63.x (runatlantis#4943)
Signed-off-by: nitrocode <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent a2ac64f commit e498244

24 files changed

+38
-34
lines changed

e2e/github.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"os/exec"
2222
"strings"
2323

24-
"github.com/google/go-github/v59/github"
24+
"github.com/google/go-github/v63/github"
2525
)
2626

2727
type GithubClient struct {
@@ -81,13 +81,15 @@ func (g GithubClient) Clone(cloneDir string) error {
8181
}
8282

8383
func (g GithubClient) CreateAtlantisWebhook(ctx context.Context, hookURL string) (int64, error) {
84+
contentType := "json"
85+
hookConfig := &github.HookConfig{
86+
ContentType: &contentType,
87+
URL: &hookURL,
88+
}
8489
// create atlantis hook
8590
atlantisHook := &github.Hook{
8691
Events: []string{"issue_comment", "pull_request", "push"},
87-
Config: map[string]interface{}{
88-
"url": hookURL,
89-
"content_type": "json",
90-
},
92+
Config: hookConfig,
9193
Active: github.Bool(true),
9294
}
9395

e2e/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/runatlantis/atlantis/e2e
33
go 1.23.0
44

55
require (
6-
github.com/google/go-github/v59 v59.0.0
6+
github.com/google/go-github/v63 v63.0.0
77
github.com/hashicorp/go-multierror v1.1.1
88
github.com/xanzy/go-gitlab v0.109.0
99
)

e2e/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
1010
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
1111
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
1212
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
13-
github.com/google/go-github/v59 v59.0.0 h1:7h6bgpF5as0YQLLkEiVqpgtJqjimMYhBkD4jT5aN3VA=
14-
github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv40oDjhV/gH6wM=
13+
github.com/google/go-github/v63 v63.0.0 h1:13xwK/wk9alSokujB9lJkuzdmQuVn2QCPeck76wR3nE=
14+
github.com/google/go-github/v63 v63.0.0/go.mod h1:IqbcrgUmIcEaioWrGYei/09o+ge5vhffGOcxrO0AfmA=
1515
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
1616
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
1717
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/go-playground/validator/v10 v10.22.1
1414
github.com/go-test/deep v1.1.1
1515
github.com/golang-jwt/jwt/v5 v5.2.1
16-
github.com/google/go-github/v59 v59.0.0
16+
github.com/google/go-github/v63 v63.0.0
1717
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
1818
github.com/google/uuid v1.6.0
1919
github.com/gorilla/mux v1.8.1

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
207207
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
208208
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
209209
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
210-
github.com/google/go-github/v59 v59.0.0 h1:7h6bgpF5as0YQLLkEiVqpgtJqjimMYhBkD4jT5aN3VA=
211-
github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv40oDjhV/gH6wM=
212210
github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwMmHdhl4=
213211
github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4=
212+
github.com/google/go-github/v63 v63.0.0 h1:13xwK/wk9alSokujB9lJkuzdmQuVn2QCPeck76wR3nE=
213+
github.com/google/go-github/v63 v63.0.0/go.mod h1:IqbcrgUmIcEaioWrGYei/09o+ge5vhffGOcxrO0AfmA=
214214
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
215215
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
216216
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=

server/controllers/events/events_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"net/http"
2121
"strings"
2222

23-
"github.com/google/go-github/v59/github"
23+
"github.com/google/go-github/v63/github"
2424
"github.com/mcdafydd/go-azuredevops/azuredevops"
2525
"github.com/microcosm-cc/bluemonday"
2626
"github.com/pkg/errors"

server/controllers/events/events_controller_e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strings"
1414
"testing"
1515

16-
"github.com/google/go-github/v59/github"
16+
"github.com/google/go-github/v63/github"
1717
"github.com/hashicorp/go-version"
1818
. "github.com/petergtz/pegomock/v4"
1919

server/controllers/events/events_controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"strings"
2626
"testing"
2727

28-
"github.com/google/go-github/v59/github"
28+
"github.com/google/go-github/v63/github"
2929
"github.com/mcdafydd/go-azuredevops/azuredevops"
3030
. "github.com/petergtz/pegomock/v4"
3131
events_controllers "github.com/runatlantis/atlantis/server/controllers/events"

server/controllers/events/github_request_validator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"io"
2020
"net/http"
2121

22-
"github.com/google/go-github/v59/github"
22+
"github.com/google/go-github/v63/github"
2323
)
2424

2525
//go:generate pegomock generate --package mocks -o mocks/mock_github_request_validator.go GithubRequestValidator

server/events/apply_command_runner_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"testing"
66

7-
"github.com/google/go-github/v59/github"
7+
"github.com/google/go-github/v63/github"
88
. "github.com/petergtz/pegomock/v4"
99
"github.com/runatlantis/atlantis/server/core/db"
1010
"github.com/runatlantis/atlantis/server/core/locking"

server/events/command_runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"fmt"
1818
"strconv"
1919

20-
"github.com/google/go-github/v59/github"
20+
"github.com/google/go-github/v63/github"
2121
"github.com/mcdafydd/go-azuredevops/azuredevops"
2222
"github.com/pkg/errors"
2323
"github.com/runatlantis/atlantis/server/core/config/valid"

server/events/command_runner_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/runatlantis/atlantis/server/logging"
2828
"github.com/runatlantis/atlantis/server/metrics"
2929

30-
"github.com/google/go-github/v59/github"
30+
"github.com/google/go-github/v63/github"
3131
. "github.com/petergtz/pegomock/v4"
3232
lockingmocks "github.com/runatlantis/atlantis/server/core/locking/mocks"
3333
"github.com/runatlantis/atlantis/server/events"

server/events/event_parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
giteasdk "code.gitea.io/sdk/gitea"
2424

2525
"github.com/go-playground/validator/v10"
26-
"github.com/google/go-github/v59/github"
26+
"github.com/google/go-github/v63/github"
2727
lru "github.com/hashicorp/golang-lru/v2"
2828
"github.com/mcdafydd/go-azuredevops/azuredevops"
2929
"github.com/pkg/errors"

server/events/event_parser_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strings"
2222
"testing"
2323

24-
"github.com/google/go-github/v59/github"
24+
"github.com/google/go-github/v63/github"
2525
"github.com/mcdafydd/go-azuredevops/azuredevops"
2626
"github.com/mohae/deepcopy"
2727
"github.com/runatlantis/atlantis/server/events"

server/events/mocks/mock_event_parsing.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/events/mocks/mock_github_pull_getter.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/events/plan_command_runner_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"testing"
66

7-
"github.com/google/go-github/v59/github"
7+
"github.com/google/go-github/v63/github"
88
. "github.com/petergtz/pegomock/v4"
99
"github.com/runatlantis/atlantis/server/core/db"
1010
"github.com/runatlantis/atlantis/server/events"

server/events/vcs/github_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323
"time"
2424

25-
"github.com/google/go-github/v59/github"
25+
"github.com/google/go-github/v63/github"
2626
"github.com/pkg/errors"
2727
"github.com/runatlantis/atlantis/server/events/command"
2828
"github.com/runatlantis/atlantis/server/events/models"

server/events/vcs/github_credentials.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99

1010
"github.com/bradleyfalzon/ghinstallation/v2"
11-
"github.com/google/go-github/v59/github"
11+
"github.com/google/go-github/v63/github"
1212
"github.com/pkg/errors"
1313
)
1414

server/events/vcs/instrumented_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package vcs
33
import (
44
"strconv"
55

6-
"github.com/google/go-github/v59/github"
6+
"github.com/google/go-github/v63/github"
77
"github.com/runatlantis/atlantis/server/events/models"
88
"github.com/runatlantis/atlantis/server/logging"
99
"github.com/runatlantis/atlantis/server/metrics"

server/events/vcs/mocks/mock_github_pull_request_getter.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/events/vcs/testdata/fixtures.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"testing"
2323

2424
"github.com/golang-jwt/jwt/v5"
25-
"github.com/google/go-github/v59/github"
25+
"github.com/google/go-github/v63/github"
2626
"github.com/mcdafydd/go-azuredevops/azuredevops"
2727
)
2828

testdrive/github.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"strings"
1919
"time"
2020

21-
"github.com/google/go-github/v59/github"
21+
"github.com/google/go-github/v63/github"
2222
)
2323

2424
var githubUsername string
@@ -55,12 +55,14 @@ func (g *Client) CheckForkSuccess(ownerName string, forkRepoName string) bool {
5555

5656
// CreateWebhook creates a GitHub webhook to send requests to our local ngrok.
5757
func (g *Client) CreateWebhook(ownerName string, repoName string, hookURL string) error {
58+
contentType := "json"
59+
hookConfig := &github.HookConfig{
60+
ContentType: &contentType,
61+
URL: &hookURL,
62+
}
5863
atlantisHook := &github.Hook{
5964
Events: []string{"issue_comment", "pull_request", "pull_request_review", "push"},
60-
Config: map[string]interface{}{
61-
"url": hookURL,
62-
"content_type": "json",
63-
},
65+
Config: hookConfig,
6466
Active: github.Bool(true),
6567
}
6668
_, _, err := g.client.Repositories.CreateHook(g.ctx, ownerName, repoName, atlantisHook)

testdrive/testdrive.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"time"
3232

3333
"github.com/briandowns/spinner"
34-
"github.com/google/go-github/v59/github"
34+
"github.com/google/go-github/v63/github"
3535
"github.com/mitchellh/colorstring"
3636
"github.com/pkg/errors"
3737
)

0 commit comments

Comments
 (0)