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

Support sha as an alternative of tag input #46

Open
GeoSot opened this issue Jan 25, 2024 · 1 comment
Open

Support sha as an alternative of tag input #46

GeoSot opened this issue Jan 25, 2024 · 1 comment

Comments

@GeoSot
Copy link

GeoSot commented Jan 25, 2024

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

@AlexisBRENON
Copy link

Just for info, using toTag and fromTag you can use shas directly.

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

2 participants