Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/42loco42/github-newest-tag
- Owner: 42LoCo42
- License: gpl-3.0
- Created: 2024-10-23T13:54:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T14:02:07.000Z (3 months ago)
- Last Synced: 2024-11-02T12:07:31.021Z (2 months ago)
- Topics: github-api, github-api-v4, github-graphql-api, graphql
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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!