Browse Source

github: add utils directories also to allowed prefixes (e.g. kamctl)

Henning Westerholt 5 days ago
parent
commit
9b56503fdb
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/scripts/check-commit.sh

+ 6 - 0
.github/scripts/check-commit.sh

@@ -47,6 +47,12 @@ check_subject() {
     return
     return
   fi
   fi
 
 
+  # utils directory?
+  if [ -d "utils/${prefix}" ] ; then
+    echo "[${commit}] prefix is a utils dir in the repo, OK[${prefix}]"
+    return
+  fi
+
   # file (e.g., ChangeLog, etc/kamailio.cfg)
   # file (e.g., ChangeLog, etc/kamailio.cfg)
   if [ -f "${prefix}" ] ; then
   if [ -f "${prefix}" ] ; then
     echo "[${commit}] prefix is a file in the repo, OK[${prefix}]"
     echo "[${commit}] prefix is a file in the repo, OK[${prefix}]"