Skip to content

Commit 2fa3b6f

Browse files
authored
chore: update go.mod for gen_github_action_config script (#3300)
fix: apply the workaround suggested by the GitHub team.
1 parent a760cb1 commit 2fa3b6f

File tree

3 files changed

+38
-21
lines changed

3 files changed

+38
-21
lines changed
+11-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
module github.com/golangci/golangci-lint/scripts/gen_github_action_config
22

3-
go 1.16
3+
go 1.18
44

55
require (
6-
github.com/shurcooL/githubv4 v0.0.0-20200627185320-e003124d66e4
7-
github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f // indirect
8-
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
6+
github.com/shurcooL/githubv4 v0.0.0-20220922232305-70b4d362a8cb
7+
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
8+
)
9+
10+
require (
11+
github.com/golang/protobuf v1.5.2 // indirect
12+
github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 // indirect
13+
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
14+
google.golang.org/appengine v1.6.7 // indirect
15+
google.golang.org/protobuf v1.28.0 // indirect
916
)

scripts/gen_github_action_config/go.sum

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

scripts/gen_github_action_config/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func fetchAllReleases(ctx context.Context) ([]release, error) {
211211
EndCursor githubv4.String
212212
HasNextPage bool
213213
}
214-
} `graphql:"releases(first: 100, after: $releasesCursor)"`
214+
} `graphql:"releases(first: 100, orderBy: { field: CREATED_AT, direction: DESC }, after: $releasesCursor)"`
215215
} `graphql:"repository(owner: $owner, name: $name)"`
216216
}
217217

0 commit comments

Comments
 (0)