Listing tags #8378
-
|
Hello, Does anyone know how this can be achieved? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Is there something you are looking for beyond Perhaps you want to get tags for a repo that you haven't cloned locally? |
Beta Was this translation helpful? Give feedback.
-
|
Perhaps some form of: Also using the |
Beta Was this translation helpful? Give feedback.
-
|
I also got this working with the graphql API. In my case I just wanted to look up the latest tag (I actually wanted to lookup the latest available version of the git client). $ gh api graphql -f query='{repository(owner: "<OWNER>", name: "<REPO>"){refs(refPrefix: "refs/tags/", last: 1){nodes{name}}}}' --jq '.data.repository.refs.nodes[].name'Outputs the most recent tag name from repo It would be really nice to have something like this built into the gh repo command rather than needing to figure out these API commands! |
Beta Was this translation helpful? Give feedback.
-
|
I would also love to have a command. Some repos use tags instead of releases so this would make programmatic downloading a lot easier. |
Beta Was this translation helpful? Give feedback.
-
|
hey chat I wrote an extension for this purpose! |
Beta Was this translation helpful? Give feedback.
Perhaps some form of:
Also using the
--jqtag would get you what you want?