Skip to content

Commit 66a16df

Browse files
Update module github.com/google/go-github/v54 to v57 (#1002)
* Update module github.com/google/go-github/v54 to v57 * Fix deprecation --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hidetake Iwata <[email protected]>
1 parent d4cff2f commit 66a16df

9 files changed

+11
-11
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/argoproj/gitops-engine v0.7.1-0.20230906152414-b0fffe419a0f
88
github.com/go-logr/logr v1.3.0
99
github.com/google/go-cmp v0.6.0
10-
github.com/google/go-github/v54 v54.0.0
10+
github.com/google/go-github/v57 v57.0.0
1111
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
1212
github.com/int128/oauth2-github-app v1.1.0
1313
github.com/onsi/ginkgo/v2 v2.13.2

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
412412
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
413413
github.com/google/go-github/v53 v53.2.0 h1:wvz3FyF53v4BK+AsnvCmeNhf8AkTaeh2SoYu/XUvTtI=
414414
github.com/google/go-github/v53 v53.2.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
415-
github.com/google/go-github/v54 v54.0.0 h1:OZdXwow4EAD5jEo5qg+dGFH2DpkyZvVsAehjvJuUL/c=
416-
github.com/google/go-github/v54 v54.0.0/go.mod h1:Sw1LXWHhXRZtzJ9LI5fyJg9wbQzYvFhW8W5P2yaAQ7s=
415+
github.com/google/go-github/v57 v57.0.0 h1:L+Y3UPTY8ALM8x+TV0lg+IEBI+upibemtBD8Q9u7zHs=
416+
github.com/google/go-github/v57 v57.0.0/go.mod h1:s0omdnye0hvK/ecLvpsGfJMiRt85PimQh4oygmLIxHw=
417417
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
418418
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
419419
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=

internal/controller/applicationhealthdeployment_controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
argocdv1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
88
"github.com/argoproj/gitops-engine/pkg/health"
9-
"github.com/google/go-github/v54/github"
9+
"github.com/google/go-github/v57/github"
1010
. "github.com/onsi/ginkgo/v2"
1111
. "github.com/onsi/gomega"
1212
corev1 "k8s.io/api/core/v1"

internal/controller/applicationphasedeployment_controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
argocdv1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
88
"github.com/argoproj/gitops-engine/pkg/health"
99
synccommon "github.com/argoproj/gitops-engine/pkg/sync/common"
10-
"github.com/google/go-github/v54/github"
10+
"github.com/google/go-github/v57/github"
1111
. "github.com/onsi/ginkgo/v2"
1212
. "github.com/onsi/gomega"
1313
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

internal/controller/mocks_test.go

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

11-
"github.com/google/go-github/v54/github"
11+
"github.com/google/go-github/v57/github"
1212
. "github.com/onsi/ginkgo/v2"
1313
. "github.com/onsi/gomega"
1414
)

internal/github/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"os"
88

9-
"github.com/google/go-github/v54/github"
9+
"github.com/google/go-github/v57/github"
1010
"github.com/gregjones/httpcache"
1111
"github.com/int128/oauth2-github-app"
1212
"golang.org/x/oauth2"
@@ -60,7 +60,7 @@ func newOAuth2Client(ctx context.Context) (*http.Client, error) {
6060
func newGitHubClient(hc *http.Client) (*github.Client, error) {
6161
ghesURL := os.Getenv("GITHUB_ENTERPRISE_URL")
6262
if ghesURL != "" {
63-
ghc, err := github.NewEnterpriseClient(ghesURL, ghesURL, hc)
63+
ghc, err := github.NewClient(hc).WithEnterpriseURLs(ghesURL, ghesURL)
6464
if err != nil {
6565
return nil, fmt.Errorf("could not create a GitHub Enterprise client: %w", err)
6666
}

internal/github/comment.go

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

7-
"github.com/google/go-github/v54/github"
7+
"github.com/google/go-github/v57/github"
88
)
99

1010
type Comment struct {

internal/github/deployment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"regexp"
77
"strconv"
88

9-
"github.com/google/go-github/v54/github"
9+
"github.com/google/go-github/v57/github"
1010
)
1111

1212
type Deployment struct {

internal/github/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"errors"
66
"regexp"
77

8-
"github.com/google/go-github/v54/github"
8+
"github.com/google/go-github/v57/github"
99
)
1010

1111
type Client interface {

0 commit comments

Comments
 (0)