Get Release notes from Github API

Posted on 18 Sep, 2021

Getting release notes for your favourite tool is a piece of cake using the GitHub Releases API

curl -s -L$REMOTE_REPO/releases | awk -F=":" '/body/ {print $1;exit}' | cut -d ':' -f 2 | tr -d "\""

Note that the curl to the /releases endpoint will give all the releases. But we only want the latest changelog here. awk -F=":" '/body/ {print $1;exit}' will get the first release which is stored inside the body property and exit immediately.

Last updated