Skip to content

Commit de485e3

Browse files
Update GH definitions + Go version to 1.24.4
1 parent f5a2955 commit de485e3

File tree

9 files changed

+66
-18
lines changed

9 files changed

+66
-18
lines changed

go.mod

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
module github.com/migueleliasweb/go-github-mock
22

3-
go 1.23.0
4-
5-
toolchain go1.24.1
3+
go 1.24.4
64

75
require (
86
github.com/buger/jsonparser v1.1.1
9-
github.com/google/go-github/v72 v72.0.0
7+
github.com/google/go-github/v73 v73.0.0
108
github.com/gorilla/mux v1.8.1
11-
golang.org/x/mod v0.24.0
12-
golang.org/x/text v0.25.0
9+
golang.org/x/mod v0.25.0
10+
golang.org/x/text v0.26.0
1311
golang.org/x/time v0.11.0
1412
)
1513

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx2
33
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
44
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
55
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
6-
github.com/google/go-github/v72 v72.0.0 h1:FcIO37BLoVPBO9igQQ6tStsv2asG4IPcYFi655PPvBM=
7-
github.com/google/go-github/v72 v72.0.0/go.mod h1:WWtw8GMRiL62mvIquf1kO3onRHeWWKmK01qdCY8c5fg=
6+
github.com/google/go-github/v73 v73.0.0 h1:aR+Utnh+Y4mMkS+2qLQwcQ/cF9mOTpdwnzlaw//rG24=
7+
github.com/google/go-github/v73 v73.0.0/go.mod h1:fa6w8+/V+edSU0muqdhCVY7Beh1M8F1IlQPZIANKIYw=
88
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
99
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
1010
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
1111
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
12-
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
13-
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
14-
golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4=
15-
golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA=
12+
golang.org/x/mod v0.25.0 h1:n7a+ZbQKQA/Ysbyb0/6IbB1H/X41mKgbhfv7AfG/44w=
13+
golang.org/x/mod v0.25.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
14+
golang.org/x/text v0.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M=
15+
golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA=
1616
golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0=
1717
golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
1818
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212

1313
"github.com/buger/jsonparser"
14-
"github.com/google/go-github/v72/github"
14+
"github.com/google/go-github/v73/github"
1515

1616
"github.com/migueleliasweb/go-github-mock/src/gen"
1717
"golang.org/x/mod/modfile"

src/mock/endpointpattern.go

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,21 @@ var GetOrganizations EndpointPattern = EndpointPattern{
462462
Method: "GET",
463463
}
464464

465+
var GetOrganizationsDependabotRepositoryAccessByOrg EndpointPattern = EndpointPattern{
466+
Pattern: "/organizations/{org}/dependabot/repository-access",
467+
Method: "GET",
468+
}
469+
470+
var PatchOrganizationsDependabotRepositoryAccessByOrg EndpointPattern = EndpointPattern{
471+
Pattern: "/organizations/{org}/dependabot/repository-access",
472+
Method: "PATCH",
473+
}
474+
475+
var PutOrganizationsDependabotRepositoryAccessDefaultLevelByOrg EndpointPattern = EndpointPattern{
476+
Pattern: "/organizations/{org}/dependabot/repository-access/default-level",
477+
Method: "PUT",
478+
}
479+
465480
var GetOrganizationsSettingsBillingUsageByOrg EndpointPattern = EndpointPattern{
466481
Pattern: "/organizations/{org}/settings/billing/usage",
467482
Method: "GET",
@@ -822,6 +837,26 @@ var DeleteOrgsActionsVariablesRepositoriesByOrgByNameByRepositoryId EndpointPatt
822837
Method: "DELETE",
823838
}
824839

840+
var PostOrgsAttestationsBulkListByOrg EndpointPattern = EndpointPattern{
841+
Pattern: "/orgs/{org}/attestations/bulk-list",
842+
Method: "POST",
843+
}
844+
845+
var PostOrgsAttestationsDeleteRequestByOrg EndpointPattern = EndpointPattern{
846+
Pattern: "/orgs/{org}/attestations/delete-request",
847+
Method: "POST",
848+
}
849+
850+
var DeleteOrgsAttestationsDigestByOrgBySubjectDigest EndpointPattern = EndpointPattern{
851+
Pattern: "/orgs/{org}/attestations/digest/{subject_digest}",
852+
Method: "DELETE",
853+
}
854+
855+
var DeleteOrgsAttestationsByOrgByAttestationId EndpointPattern = EndpointPattern{
856+
Pattern: "/orgs/{org}/attestations/{attestation_id}",
857+
Method: "DELETE",
858+
}
859+
825860
var GetOrgsAttestationsByOrgBySubjectDigest EndpointPattern = EndpointPattern{
826861
Pattern: "/orgs/{org}/attestations/{subject_digest}",
827862
Method: "GET",
@@ -4962,6 +4997,21 @@ var GetUsersByUsername EndpointPattern = EndpointPattern{
49624997
Method: "GET",
49634998
}
49644999

5000+
var PostUsersAttestationsDeleteRequestByUsername EndpointPattern = EndpointPattern{
5001+
Pattern: "/users/{username}/attestations/delete-request",
5002+
Method: "POST",
5003+
}
5004+
5005+
var DeleteUsersAttestationsDigestByUsernameBySubjectDigest EndpointPattern = EndpointPattern{
5006+
Pattern: "/users/{username}/attestations/digest/{subject_digest}",
5007+
Method: "DELETE",
5008+
}
5009+
5010+
var DeleteUsersAttestationsByUsernameByAttestationId EndpointPattern = EndpointPattern{
5011+
Pattern: "/users/{username}/attestations/{attestation_id}",
5012+
Method: "DELETE",
5013+
}
5014+
49655015
var GetUsersAttestationsByUsernameBySubjectDigest EndpointPattern = EndpointPattern{
49665016
Pattern: "/users/{username}/attestations/{subject_digest}",
49675017
Method: "GET",

src/mock/endpointpattern_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/google/go-github/v72/github"
7+
"github.com/google/go-github/v73/github"
88
)
99

1010
func TestRepoGetContents(t *testing.T) {

src/mock/server_options_external_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/google/go-github/v72/github"
9+
"github.com/google/go-github/v73/github"
1010
"github.com/migueleliasweb/go-github-mock/src/mock"
1111
)
1212

src/mock/server_options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package mock
33
import (
44
"testing"
55

6-
"github.com/google/go-github/v72/github"
6+
"github.com/google/go-github/v73/github"
77
"github.com/gorilla/mux"
88
)
99

src/mock/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"testing"
99

10-
"github.com/google/go-github/v72/github"
10+
"github.com/google/go-github/v73/github"
1111
)
1212

1313
func TestNewMockedHTTPClient(t *testing.T) {

src/mock/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"net/http"
66

7-
"github.com/google/go-github/v72/github"
7+
"github.com/google/go-github/v73/github"
88
)
99

1010
// MustMarshal helper function that wraps json.Marshal

0 commit comments

Comments
 (0)