Skip to content

Commit 4330473

Browse files
committed
helpers/check_dates_in_changes: Only look at the first line of entries
The previous logic looked at anything matching *-*@* which has too many false positives. Make it look for changelog entry separators instead.
1 parent c67c5f7 commit 4330473

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

helpers/check_dates_in_changes

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ for CHANGES in "$@" ; do
2020

2121
while read LINE ; do
2222
case "$LINE" in
23-
removed*) ;;
24-
*@*@*) ;;
25-
*-*@*)
23+
--------------*)
24+
# Next line is the changelog entry header
25+
read LINE
26+
;;
27+
*)
28+
continue
29+
;;
30+
esac
31+
2632
DATESTR=""
2733
LINE=${LINE#\*}
2834
for i in $LINE ; do
@@ -59,8 +65,6 @@ for CHANGES in "$@" ; do
5965
echo "ERROR: INVALID DATE \"$DATESTR\" "
6066
TROUBLE_FOUND=true
6167
}
62-
;;
63-
esac
6468
done < "$CHANGES"
6569
done
6670
if test $TROUBLE_FOUND = false ; then

0 commit comments

Comments
 (0)