Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/42loco42/github-newest-tag

Get the newest tag of a GitHub repo through the GraphQL API
https://github.com/42loco42/github-newest-tag

github-api github-api-v4 github-graphql-api graphql

Last synced: 20 days ago
JSON representation

Get the newest tag of a GitHub repo through the GraphQL API

Awesome Lists containing this project

README

        

* github-newest-tag
Get the newest tag of a GitHub repo through the GraphQL API.

Inspired by [[https://stackoverflow.com/a/47502810][this]] Stack Overflow answer.

** Usage

1. Create a new personal access token [[https://github.com/settings/tokens?type=beta][here]]
2. =export GITHUB_TOKEN=yourtoken=
or put it in =.env= when using this repo's devshell
3. =go run . 42loco42 github-newest-tag= returns =1=. yay!