Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 019dc47

Browse files
committed
Update 296 issues script w/ status input args
1 parent b4980ef commit 019dc47

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/scripts/scdf-issues-296

100644100755
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
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+
311
VALUES='
412
2.9.6,spring-cloud-dataflow-build
513
2.9.6,spring-cloud-dataflow-common
@@ -12,12 +20,12 @@ VALUES='
1220
3.2.6,spring-cloud-dataflow-ui
1321
2.9.6,spring-cloud-dataflow
1422
'
15-
23+
ISSUE_STATUS="${1:-all}"
1624

1725
for 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
2331
done;

0 commit comments

Comments
 (0)