Module: kamailio Branch: master Commit: 6e4041d7115af1efe399c44589192280e413504a URL: https://github.com/kamailio/kamailio/commit/6e4041d7115af1efe399c44589192280e413504a
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-07-14T14:43:43+02:00 .github: scripts/check-commit.sh - added prefix tests for files in the repo --- Modified: .github/scripts/check-commit.sh --- Diff: https://github.com/kamailio/kamailio/commit/6e4041d7115af1efe399c44589192280e413504a.diff Patch: https://github.com/kamailio/kamailio/commit/6e4041d7115af1efe399c44589192280e413504a.patch --- diff --git a/.github/scripts/check-commit.sh b/.github/scripts/check-commit.sh index 87aa17be598..099e070f15c 100755 --- a/.github/scripts/check-commit.sh +++ b/.github/scripts/check-commit.sh @@ -47,6 +47,18 @@ check_subject() { return fi + # file (e.g., ChangeLog, etc/kamailio.cfg) + if [ -f "${prefix}" ] ; then + echo "[${commit}] prefix is a file in the repo, OK[${prefix}]" + return + fi + + # shortcut to src/ file (e.g., src/Makefile.defs) + if [ -f "src/${prefix}" ] ; then + echo "[${commit}] prefix is a file in the src repo, OK[${prefix}]" + return + fi + # github configs if [[ "${prefix}" =~ ^github$ ]] ; then echo "[${commit}] prefix is github config, OK[${prefix}]" _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!