Module: kamailio Branch: master Commit: 6e4041d7115af1efe399c44589192280e413504a URL: https://github.com/kamailio/kamailio/commit/6e4041d7115af1efe399c44589192280...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/6e4041d7115af1efe399c44589192280... Patch: https://github.com/kamailio/kamailio/commit/6e4041d7115af1efe399c44589192280...
---
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}]"