Skip to content

Instantly share code, notes, and snippets.

@raghur
Last active June 5, 2021 15:01
Show Gist options
  • Save raghur/8c349b4816a6a7b1b523200004d0d486 to your computer and use it in GitHub Desktop.
Save raghur/8c349b4816a6a7b1b523200004d0d486 to your computer and use it in GitHub Desktop.
Create opml feed for releases from your starred repos
# fetch starred repos, form feed urls to releases, create opml file that can be imported into your favourite feed reader
curl -sL "api.github.com/users/raghur/starred?page=1&per_page=500" | \
jq -r '"<outline xmlUrl=\"https://github.com/" + .[].full_name + "/releases.atom\" />"' | \
awk -e 'BEGIN {print "<opml version=\"1.0\"><body> <outline title=\"Github Releases\" text=\"Github Releases\">"}
{print}
END {print "</outline></body></opml>"}' > subs.opml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment