Created
August 20, 2024 20:19
-
-
Save pmarreck/3c70b9647fd2806e73ff2c569d5ee74f to your computer and use it in GitHub Desktop.
Bash one-liner to turn a complete Github Issues thread into pretty-printed Markdown in the terminal
This file contains hidden or 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
# requires curl, jq and glow | |
# example | |
curl -s "https://api.github.com/repos/simonw/shot-scraper/issues/1/comments" | jq -r '.[] | "## Comment by \(.user.login) on \(.created_at)\n\n\(.body)\n"' | glow - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment