Add function to get github releases

This commit is contained in:
Buddy Sandidge 2022-06-08 16:29:36 -07:00
parent 17b343a8fa
commit c779e1975a

View File

@ -58,3 +58,10 @@ yaml_to_json () (
echo "${ARG}" | dasel --read yaml --write json | bat --language json
fi
)
github_releases () (
USER=${1}
REPO=${2}
curl --silent --header "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${USER}/${REPO}/releases"
)