Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit bf11076

Browse files
committed
Fix tag query
The old one did not return the latest tag
1 parent 92c59c6 commit bf11076

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/util/graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export const tags = `
2727
query($repo: String!, $owner: String!) {
2828
repository(name: $repo, owner: $owner) {
2929
refs(
30-
last: 1
3130
refPrefix: "refs/tags/"
32-
orderBy: { field: ALPHABETICAL, direction: ASC }
31+
first: 1
32+
orderBy: { field: TAG_COMMIT_DATE, direction: DESC }
3333
) {
3434
nodes {
3535
name

0 commit comments

Comments
 (0)