Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Created August 20, 2024 20:19
Show Gist options
  • Save pmarreck/3c70b9647fd2806e73ff2c569d5ee74f to your computer and use it in GitHub Desktop.
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
# 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