ghactions-manager icon indicating copy to clipboard operation
ghactions-manager copied to clipboard

When there are no releases for repo, try getting tags instead.

Open cunla opened this issue 9 months ago • 0 comments

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.
Fund with Polar

cunla avatar May 05 '24 15:05 cunla