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/v65 to v68 #1229

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 compiler/native/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

"github.com/gin-gonic/gin"
"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/urfave/cli/v2"
yml "gopkg.in/yaml.v3"

Expand Down Expand Up @@ -2446,8 +2446,8 @@
}

content := github.RepositoryContent{
Encoding: github.String(""),

Check failure on line 2449 in compiler/native/compile_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile_test.go#L2449

SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
Raw output
compiler/native/compile_test.go:2449:13: SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
		Encoding: github.String(""),
		          ^
Content: github.String(string(body)),

Check failure on line 2450 in compiler/native/compile_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile_test.go#L2450

SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
Raw output
compiler/native/compile_test.go:2450:13: SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
		Content:  github.String(string(body)),
		          ^
}

return content, nil
Expand Down
2 changes: 1 addition & 1 deletion compiler/registry/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/url"
"strings"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"golang.org/x/oauth2"
)

Expand Down
2 changes: 1 addition & 1 deletion compiler/registry/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"testing"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"golang.org/x/oauth2"
)

Expand Down
2 changes: 1 addition & 1 deletion compiler/registry/github/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"net/http"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"

api "github.com/go-vela/server/api/types"
"github.com/go-vela/server/compiler/registry"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/go-playground/assert/v2 v2.2.0
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/google/go-cmp v0.6.0
github.com/google/go-github/v65 v65.0.0
github.com/google/go-github/v68 v68.0.0
github.com/google/uuid v1.6.0
github.com/goware/urlx v0.3.2
github.com/hashicorp/go-cleanhttp v0.5.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a
github.com/google/go-cmp v0.5.2/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/v65 v65.0.0 h1:pQ7BmO3DZivvFk92geC0jB0q2m3gyn8vnYPgV7GSLhQ=
github.com/google/go-github/v65 v65.0.0/go.mod h1:DvrqWo5hvsdhJvHd4WyVF9ttANN3BniqjP8uTFMNb60=
github.com/google/go-github/v68 v68.0.0 h1:ZW57zeNZiXTdQ16qrDiZ0k6XucrxZ2CGmoTvcCyQG6s=
github.com/google/go-github/v68 v68.0.0/go.mod h1:K9HAUBovM2sLwM408A18h+wd9vqdLOEqTUCbnRIcx68=
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/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
Expand Down
2 changes: 1 addition & 1 deletion scm/github/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"strings"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/sirupsen/logrus"

api "github.com/go-vela/server/api/types"
Expand Down
2 changes: 1 addition & 1 deletion scm/github/app_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"fmt"
"strings"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
)

// see: https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28
Expand Down Expand Up @@ -59,7 +59,7 @@
// convert resource from string
switch strings.ToLower(resource) {
case AppInstallResourceContents:
perms.Contents = github.String(perm)

Check failure on line 62 in scm/github/app_permissions.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/app_permissions.go#L62

SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/app_permissions.go:62:20: SA1019: github.String is deprecated: use Ptr instead. (staticcheck)
		perms.Contents = github.String(perm)
		                 ^
case AppInstallResourceChecks:
perms.Checks = github.String(perm)
case AppInstallResourcePackages:
Expand Down
2 changes: 1 addition & 1 deletion scm/github/app_permissions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package github
import (
"testing"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
)

func TestGetInstallationPermission(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion scm/github/app_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"time"

"github.com/golang-jwt/jwt/v5"
"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)
Expand Down
2 changes: 1 addition & 1 deletion scm/github/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"

api "github.com/go-vela/server/api/types"
"github.com/go-vela/server/random"
Expand Down
2 changes: 1 addition & 1 deletion scm/github/changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/sirupsen/logrus"

api "github.com/go-vela/server/api/types"
Expand Down
2 changes: 1 addition & 1 deletion scm/github/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"context"
"encoding/json"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/sirupsen/logrus"

api "github.com/go-vela/server/api/types"
Expand Down Expand Up @@ -177,7 +177,7 @@
deployment := &github.DeploymentRequest{
Ref: d.Ref,
Task: d.Task,
AutoMerge: github.Bool(false),

Check failure on line 180 in scm/github/deployment.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/deployment.go#L180

SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/deployment.go:180:21: SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
		AutoMerge:        github.Bool(false),
		                  ^
RequiredContexts: &[]string{},
Payload: payload,
Environment: d.Target,
Expand Down
2 changes: 1 addition & 1 deletion scm/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"os"
"strings"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/sirupsen/logrus"
"golang.org/x/oauth2"

Expand Down
2 changes: 1 addition & 1 deletion scm/github/github_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"
"strings"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"golang.org/x/oauth2"
Expand Down
2 changes: 1 addition & 1 deletion scm/github/github_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"testing"

"github.com/gin-gonic/gin"
"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"

api "github.com/go-vela/server/api/types"
"github.com/go-vela/server/constants"
Expand Down Expand Up @@ -73,7 +73,7 @@
client: appsClient,
repo: accessibleRepo,
installation: &github.Installation{
ID: github.Int64(1),

Check failure on line 76 in scm/github/github_client_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/github_client_test.go#L76

SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/github_client_test.go:76:9: SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
				ID: github.Int64(1),
				    ^
Account: &github.User{
Login: github.String("github"),
},
Expand All @@ -87,7 +87,7 @@
client: appsClient,
repo: inaccessibleRepo,
installation: &github.Installation{
ID: github.Int64(2),

Check failure on line 90 in scm/github/github_client_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/github_client_test.go#L90

SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/github_client_test.go:90:9: SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
				ID: github.Int64(2),
				    ^
Account: &github.User{
Login: github.String("github"),
},
Expand All @@ -101,7 +101,7 @@
client: oauthClient,
repo: accessibleRepo,
installation: &github.Installation{
ID: github.Int64(1),

Check failure on line 104 in scm/github/github_client_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/github_client_test.go#L104

SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/github_client_test.go:104:9: SA1019: github.Int64 is deprecated: use Ptr instead. (staticcheck)
				ID: github.Int64(1),
				    ^
Account: &github.User{
Login: github.String("github"),
},
Expand Down
2 changes: 1 addition & 1 deletion scm/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"testing"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"golang.org/x/oauth2"
)

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

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/sirupsen/logrus"

api "github.com/go-vela/server/api/types"
Expand Down Expand Up @@ -206,7 +206,7 @@
ContentType: github.String("form"),
Secret: github.String(r.GetHash()),
},
Active: github.Bool(true),

Check failure on line 209 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L209

SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/repo.go:209:11: SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
		Active: github.Bool(true),
		        ^
}

// send API call to create the webhook
Expand Down Expand Up @@ -280,7 +280,7 @@
ContentType: github.String("form"),
Secret: github.String(r.GetHash()),
},
Active: github.Bool(true),

Check failure on line 283 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L283

SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
Raw output
scm/github/repo.go:283:11: SA1019: github.Bool is deprecated: use Ptr instead. (staticcheck)
		Active: github.Bool(true),
		        ^
}

// send API call to update the webhook
Expand Down
2 changes: 1 addition & 1 deletion scm/github/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/gin-gonic/gin"
"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"

api "github.com/go-vela/server/api/types"
"github.com/go-vela/server/compiler/types/yaml/yaml"
Expand Down
2 changes: 1 addition & 1 deletion scm/github/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v65/github"
"github.com/google/go-github/v68/github"
"github.com/sirupsen/logrus"

api "github.com/go-vela/server/api/types"
Expand Down
Loading