dsoftwareinc / ghactions-manager

A plugin to manage GitHub actions from JetBrains IDEs (intellij, pycharm, etc.)
Other
59 stars 13 forks source link

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

Closed cunla closed 5 months ago

cunla commented 6 months ago

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

Fund with Polar

cunla commented 5 months ago

v2024.2.0