Skip to content

Instantly share code, notes, and snippets.

@Sardonyx001
Created October 9, 2024 02:25
Show Gist options
  • Save Sardonyx001/6fc791d8f899d5cf2eddc052d7053e1b to your computer and use it in GitHub Desktop.
Save Sardonyx001/6fc791d8f899d5cf2eddc052d7053e1b to your computer and use it in GitHub Desktop.
Fetch a github repo's topic tags
#! /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