ghactions-manager
ghactions-manager copied to clipboard
When there are no releases for repo, try getting tags instead.
Describe the bug
Currently, getting using graphql only releases. Get tags as well.
query ($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
refs(refPrefix: "refs/tags/", first: 1, direction:DESC) {
# totalCount
# pageInfo {
# endCursor
# hasNextPage
# }
nodes {
name
# target {
# ... on Commit {
# abbreviatedOid
# committedDate
# }
# ... on Tag {
# target {
# ... on Commit {
# abbreviatedOid
# committedDate
# }
# }
# }
# }
}
}
}
}
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.