Last active
September 3, 2018 15:10
-
-
Save chaspy/2d4e25e729d56fb5a6b89dc907cb6cc2 to your computer and use it in GitHub Desktop.
for kamontia/qs release issue
This file contains 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
#!/bin/bash | |
LABELS="enhancement improvement" | |
MILESTONE="v0.2.0" | |
REPO="kamontia/qs" | |
for LABEL in $LABELS | |
do | |
echo "# ${LABEL}" | |
curl -sS https://api.github.com/search/issues?q=repo:"$REPO"+label:"$LABEL"+milestone:"$MILESTONE" \ | |
| jq -c '.items[] | {title,html_url} | .html_url |= . + "\n" ' \ | |
| jq -c 'sort_by(.html_url) | .[]' --slurp \ | |
| jq -r .'[]' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment