Last active
June 5, 2021 15:01
-
-
Save raghur/8c349b4816a6a7b1b523200004d0d486 to your computer and use it in GitHub Desktop.
Create opml feed for releases from your starred repos
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
# 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