Skip to content

Commit

Permalink
Add shell script for getting the current list of GitHub issues for a …
Browse files Browse the repository at this point in the history
…milestone.

Useful for building the release notes. Could be formatted in the GHM format we
need for the release notes, but left as an exercise for the reader.
  • Loading branch information
mbjones committed Aug 18, 2019
1 parent ecc1a93 commit 42584d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/get-issues-list.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# Usage: get-issues-list.sh <milestone-number>

# Get the list of issues for a milestone from GitHub, and extract the essential bits needed for creating the release notes document
# Note that this is simplistic and may not work if there are more than 100 issues in the release, etc. Also note the milestone number
# is not the same as the milestone label in GitHub

curl -H "Accept: text/json" https://api.github.com/repos/NCEAS/eml/issues?milestone=$1\&state=all\&per_page=100 > eml-$1-issues-01.json
jq '[ .[] | [.number, .state, .title, .html_url ]] | sort | .[] | @csv' eml-$1-issues-01.json > eml-$1-issues-01.csv
echo "List of issues are in file: eml-$1-issues-01.csv"

0 comments on commit 42584d5

Please sign in to comment.