Created
October 9, 2024 02:25
-
-
Save Sardonyx001/6fc791d8f899d5cf2eddc052d7053e1b to your computer and use it in GitHub Desktop.
Fetch a github repo's topic tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# if you have gh and jq installed | |
gh api \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
/repos/OWNER/REPO/topics \ | |
| jq -r '.names[]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment