From 787efe9192f97752c892b43834b1492d8c71c894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Tue, 11 May 2021 14:58:43 +0200 Subject: [PATCH] automation: add changelog check (#268) * automation: add changelog check * add changelog * remove change and changelog --- automation/build-artifacts.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/automation/build-artifacts.sh b/automation/build-artifacts.sh index 69b8e99b..740172eb 100755 --- a/automation/build-artifacts.sh +++ b/automation/build-artifacts.sh @@ -75,3 +75,9 @@ ansible-test sanity /usr/local/bin/ansible-lint roles/* -x 204 cd $ROOT_PATH + +# If PR changed something in ./plugins or ./roles it is required to have changelog +if [[ $(git diff --quiet HEAD^ ./plugins ./roles)$? -eq 1 && $(git diff --quiet HEAD^ ./changelogs)$? -eq 0 ]]; then + echo "Please add changelog."; + exit 1; +fi