summaryrefslogtreecommitdiff
path: root/tools/check-changelog
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check-changelog')
-rw-r--r--tools/check-changelog6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/check-changelog b/tools/check-changelog
index c3e9e07c7..b94b52755 100644
--- a/tools/check-changelog
+++ b/tools/check-changelog
@@ -1,14 +1,14 @@
#!/bin/sh
-echo $CI_MERGE_REQUEST_IID
-ls changelog.d
+echo "looking for change log of $CI_MERGE_REQUEST_IID"
+
count=0
for i in add remove fix security skip; do
[ -f changelog.d/"$CI_MERGE_REQUEST_IID"."$i" ]
retcode=$?
if [ $retcode -eq 0 ]; then
echo "found $CI_MERGE_REQUEST_IID.$i"
- count=$(( count++ ))
+ count=$(( count + 1 ))
else
echo "no $CI_MERGE_REQUEST_IID.$i"
fi