Skip to content

Support sha as an alternative of tag input  #46

@GeoSot

Description

@GeoSot

Hello,

In a need to create only draft releases (without existing tag, as it will be created after publishing it), I would like to ask if it is possible to support given sha instead of only tags.

It would be possible by changing

 const tagsRaw = await gh.graphql(`
      query lastTags ($owner: String!, $repo: String!) {
        repository (owner: $owner, name: $repo) {
          refs(first: 2, refPrefix: "refs/tags/", orderBy: { field: TAG_COMMIT_DATE, direction: DESC }) {

using after and refPrefix conditionally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions