diff --git a/go.mod b/go.mod index eb4379a..ac42472 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.24.4 require ( github.com/buger/jsonparser v1.1.1 - github.com/google/go-github/v73 v73.0.0 + github.com/google/go-github/v75 v75.0.0 github.com/gorilla/mux v1.8.1 golang.org/x/mod v0.25.0 golang.org/x/text v0.26.0 diff --git a/go.sum b/go.sum index bf3647f..ebd3aef 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx2 github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/go-github/v73 v73.0.0 h1:aR+Utnh+Y4mMkS+2qLQwcQ/cF9mOTpdwnzlaw//rG24= -github.com/google/go-github/v73 v73.0.0/go.mod h1:fa6w8+/V+edSU0muqdhCVY7Beh1M8F1IlQPZIANKIYw= +github.com/google/go-github/v75 v75.0.0 h1:k7q8Bvg+W5KxRl9Tjq16a9XEgVY1pwuiG5sIL7435Ic= +github.com/google/go-github/v75 v75.0.0/go.mod h1:H3LUJEA1TCrzuUqtdAQniBNwuKiQIqdGKgBo1/M/uqI= 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/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= diff --git a/main.go b/main.go index cce2ad4..52213ce 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( "strings" "github.com/buger/jsonparser" - "github.com/google/go-github/v73/github" + "github.com/google/go-github/v75/github" "github.com/migueleliasweb/go-github-mock/src/gen" "golang.org/x/mod/modfile" diff --git a/src/mock/endpointpattern_test.go b/src/mock/endpointpattern_test.go index 46602e5..2830baa 100644 --- a/src/mock/endpointpattern_test.go +++ b/src/mock/endpointpattern_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/google/go-github/v73/github" + "github.com/google/go-github/v75/github" ) func TestRepoGetContents(t *testing.T) { @@ -163,11 +163,11 @@ func TestPatchGitReference(t *testing.T) { ctx, "owner", "repo-name", - &github.Reference{ - Ref: github.Ptr("refs/heads/new-branch"), - Object: &github.GitObject{SHA: github.Ptr("fake-sha")}, + "refs/heads/new-branch", + github.UpdateRef{ + SHA: "fake-sha", + Force: github.Ptr(false), }, - false, ) if *(ref.Ref) != "refs/heads/new-branch" { diff --git a/src/mock/server_options_external_test.go b/src/mock/server_options_external_test.go index 01184b1..be9d09e 100644 --- a/src/mock/server_options_external_test.go +++ b/src/mock/server_options_external_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/google/go-github/v73/github" + "github.com/google/go-github/v75/github" "github.com/migueleliasweb/go-github-mock/src/mock" ) diff --git a/src/mock/server_options_test.go b/src/mock/server_options_test.go index f1a0aa2..b0dbef6 100644 --- a/src/mock/server_options_test.go +++ b/src/mock/server_options_test.go @@ -3,7 +3,7 @@ package mock import ( "testing" - "github.com/google/go-github/v73/github" + "github.com/google/go-github/v75/github" "github.com/gorilla/mux" ) diff --git a/src/mock/server_test.go b/src/mock/server_test.go index 9dd2971..a1a757d 100644 --- a/src/mock/server_test.go +++ b/src/mock/server_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/google/go-github/v73/github" + "github.com/google/go-github/v75/github" ) func TestNewMockedHTTPClient(t *testing.T) { diff --git a/src/mock/utils.go b/src/mock/utils.go index e27fa26..d03807b 100644 --- a/src/mock/utils.go +++ b/src/mock/utils.go @@ -4,7 +4,7 @@ import ( "encoding/json" "net/http" - "github.com/google/go-github/v73/github" + "github.com/google/go-github/v75/github" ) // MustMarshal helper function that wraps json.Marshal