Add function to get github releases
This commit is contained in:
parent
17b343a8fa
commit
c779e1975a
@ -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"
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user