File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
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
+
3
11
VALUES='
4
12
2.10.0-M2,spring-cloud-dataflow-build
5
13
2.10.0-M2,spring-cloud-dataflow-common
@@ -12,12 +20,12 @@ VALUES='
12
20
3.3.0-M2,spring-cloud-dataflow-ui
13
21
2.10.0-M2,spring-cloud-dataflow
14
22
'
15
-
23
+ ISSUE_STATUS= " ${1 :- all} "
16
24
17
25
for VALUE in $VALUES ;
18
26
do
19
27
MILESTONE=$( echo $VALUE | cut -f1 -d,)
20
28
REPO=$( echo $VALUE | cut -f2 -d,)
21
29
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
23
31
done ;
You can’t perform that action at this time.
0 commit comments