This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
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+
311VALUES='
4122.9.6,spring-cloud-dataflow-build
5132.9.6,spring-cloud-dataflow-common
@@ -12,12 +20,12 @@ VALUES='
12203.2.6,spring-cloud-dataflow-ui
13212.9.6,spring-cloud-dataflow
1422'
15-
23+ ISSUE_STATUS= " ${1 :- all} "
1624
1725for VALUE in $VALUES ;
1826 do
1927 MILESTONE=$( echo $VALUE | cut -f1 -d,)
2028 REPO=$( echo $VALUE | cut -f2 -d,)
2129 TEMPLATE=" {{range .}}spring-cloud/$REPO #{{.number}} {{.title}}{{\" \n\" }}{{end}}"
22- gh issue list --repo spring-cloud/$REPO --search milestone:$MILESTONE --state all
30+ gh issue list --repo spring-cloud/$REPO --search milestone:$MILESTONE --state $ISSUE_STATUS $2
2331done ;
You can’t perform that action at this time.
0 commit comments