Module: kamailio Branch: master Commit: 802d4879422d8b5ef860be182354dfbb01383632 URL: https://github.com/kamailio/kamailio/commit/802d4879422d8b5ef860be182354dfbb01383632
Author: Victor Seva <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-05-04T11:34:05+02:00 github: [check-commit] add Revert prefix [skip ci] --- Modified: .github/scripts/check-commit.sh --- Diff: https://github.com/kamailio/kamailio/commit/802d4879422d8b5ef860be182354dfbb01383632.diff Patch: https://github.com/kamailio/kamailio/commit/802d4879422d8b5ef860be182354dfbb01383632.patch --- diff --git a/.github/scripts/check-commit.sh b/.github/scripts/check-commit.sh index 708f8e2bc59..0fa3d526721 100755 --- a/.github/scripts/check-commit.sh +++ b/.github/scripts/check-commit.sh @@ -18,6 +18,12 @@ check_subject() { local commit="$1" local subject="$2" + # special cases + if [[ "${subject}" =~ ^Revert\ .*$ ]] ; then + echo "[${commit}] is a git revert commit, OK[Revert]" + return + fi + # get the prefix if ! [[ "${subject}" =~ ^([^:]+):.*$ ]] ; then fail "[${commit}] prefix not detected:'${subject}'" _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
