Update changelog checker to catch invalid "fix" type (#12674)

This commit is contained in:
Jim Kalafut 2021-09-29 14:02:03 -07:00 committed by GitHub
parent e77e65d1b3
commit c944222f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ jobs:
elif grep -q ':bugs$' $changelog_files; then
echo "Found invalid type (bugs) in changelog - did you mean bug?"
exit 1
elif grep -q ':fix$' $changelog_files; then
echo "Found invalid type (fix) in changelog - did you mean bug?"
exit 1
elif ! grep -q '```release-note:' $changelog_files; then
# People often make changelog files like ```changelog:, which is incorrect.
echo "Changelog file did not contain 'release-note' heading - check formatting."