Skip to content

Instantly share code, notes, and snippets.

@chaspy
Last active September 3, 2018 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaspy/2d4e25e729d56fb5a6b89dc907cb6cc2 to your computer and use it in GitHub Desktop.
Save chaspy/2d4e25e729d56fb5a6b89dc907cb6cc2 to your computer and use it in GitHub Desktop.
for kamontia/qs release issue
#!/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