Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cunla opened this issue May 5, 2024 · 1 comment
Closed

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

cunla opened this issue May 5, 2024 · 1 comment

Comments

@cunla
Copy link
Collaborator

cunla commented May 5, 2024

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
Copy link
Collaborator Author

cunla commented May 31, 2024

v2024.2.0

@cunla cunla closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant