|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# NOTE: by default all issues will be displayed to the console. |
| 4 | +# |
| 5 | +# USAGE: <script-name> <ISSUE_STATUS> ADDITIONAL_ARGS |
| 6 | +# where ISSUE_STATUS is the status to filter by |
| 7 | +# where ADDITIONAL_ARGS are other args passed to the 'gh issue list' command such as '--web' |
| 8 | +# |
| 9 | +# NOTE: You can specify ISSUE_STATUS by itself but If you specify ADDITIONAL_ARGS you must first specify ISSUE_STATUS |
| 10 | + |
| 11 | +VALUES=' |
| 12 | +2.9.7,spring-cloud-dataflow-build |
| 13 | +2.9.7,spring-cloud-dataflow-common |
| 14 | +2.7.7,spring-cloud-deployer |
| 15 | +2.7.7,spring-cloud-deployer-local |
| 16 | +2.7.7,spring-cloud-deployer-cloudfoundry |
| 17 | +2.7.7,spring-cloud-deployer-kubernetes |
| 18 | +1.7.7,spring-cloud-common-security-config |
| 19 | +2.8.7,spring-cloud-skipper |
| 20 | +3.2.7,spring-cloud-dataflow-ui |
| 21 | +2.9.7,spring-cloud-dataflow |
| 22 | +' |
| 23 | +ISSUE_STATUS="${1:-all}" |
| 24 | + |
| 25 | +for VALUE in $VALUES; |
| 26 | + do |
| 27 | + MILESTONE=$(echo $VALUE | cut -f1 -d,) |
| 28 | + REPO=$(echo $VALUE | cut -f2 -d,) |
| 29 | + TEMPLATE="{{range .}}spring-cloud/$REPO#{{.number}} {{.title}}{{\"\n\"}}{{end}}" |
| 30 | + gh issue list --repo spring-cloud/$REPO --search milestone:$MILESTONE --state $ISSUE_STATUS $2 |
| 31 | +done; |
0 commit comments