Skip to content

Commit

Permalink
check-changelogs: report all modified packages
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Aug 2, 2023
1 parent 1cd3318 commit 487db33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ci/check-changelogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@ FD="$(which fdfind 2>/dev/null || which fd 2>/dev/null)"

set -eo pipefail

RESULT=0

function check_project () {
project=$1
n=$()
if [[ -n $(git diff --name-only origin/master..HEAD -- $project) ]];then
if [[ -z $(git diff --name-only origin/master..HEAD -- $project/CHANGELOG.md) ]]; then
echo "$project was modified but its CHANGELOG was not updated"
exit 1
RESULT=1
fi
fi
}

for cbl in $($FD -e 'cabal'); do
check_project $(dirname $cbl)
done

exit $RESULT

0 comments on commit 487db33

Please sign in to comment.