2020-01-10 13:07:43 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
lint_paths="changelogs/unreleased"
|
|
|
|
[ -d "ee/" ] && lint_paths="$lint_paths ee/changelogs/unreleased"
|
|
|
|
|
|
|
|
invalid_files=$(find $lint_paths -type f -not -name "*.yml" -not -name ".gitkeep")
|
|
|
|
|
|
|
|
if [ -n "$invalid_files" ]; then
|
2020-05-25 11:07:58 -04:00
|
|
|
echo "Changelog files must end in .yml, but these did not:"
|
|
|
|
echo "$invalid_files" | sed -e "s/^/* /"
|
2020-01-10 13:07:43 -05:00
|
|
|
exit 1
|
|
|
|
fi
|