File tree 2 files changed +11
-0
lines changed 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ MILESTONE=$(curl --fail-with-body -s \
43
43
https://api.github.com/repos/checkstyle/checkstyle/milestones)
44
44
MILESTONE_NUMBER=$( echo " $MILESTONE " | jq .[0].number)
45
45
MILESTONE_TITLE=$( echo " $MILESTONE " | jq -r .[0].title)
46
+
47
+ if [ " $MILESTONE_NUMBER " == " null" ]; then
48
+ echo " [ERROR] No milestone is found."
49
+ exit 1
50
+ fi
51
+
46
52
echo " MILESTONE_NUMBER=$MILESTONE_NUMBER "
47
53
echo " MILESTONE_TITLE=$MILESTONE_TITLE "
48
54
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ or set of validation rules (best practices).
25
25
[ ![ ] [ closed issues img ]] [ closed issues ]
26
26
[ ![ ] [ link check img ]] [ link check ]
27
27
28
+ [ ![ ] [ milestone img ]] [ milestone ]
29
+
28
30
Members chat: [ ![ ] [ gitter_mem img ]] [ gitter_mem ]
29
31
Contributors chat: [ ![ ] [ gitter_con img ]] [ gitter_con ]
30
32
@@ -191,3 +193,6 @@ are in the file named "LICENSE.apache20" in this directory.
191
193
192
194
[ checker framework ] :https://github.com/checkstyle/checkstyle/actions/workflows/checker-framework.yml
193
195
[ checker framework img ] :https://github.com/checkstyle/checkstyle/actions/workflows/checker-framework.yml/badge.svg
196
+
197
+ [ milestone ] :https://github.com/checkstyle/checkstyle/actions/workflows/set-milestone-on-referenced-issue.yml
198
+ [ milestone img ] :https://github.com/checkstyle/checkstyle/actions/workflows/set-milestone-on-referenced-issue.yml/badge.svg
You can’t perform that action at this time.
0 commit comments