Skip to content

Quality hardening: parser robustness and mutation coverage improvements #47

Quality hardening: parser robustness and mutation coverage improvements

Quality hardening: parser robustness and mutation coverage improvements #47

Workflow file for this run

# SPDX-FileCopyrightText: 2026 LibreSign
# SPDX-License-Identifier: AGPL-3.0-or-later
name: commitlint
on:
pull_request:
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Validate Conventional Commits
run: |
set -euo pipefail
RANGE="${{ github.event.pull_request.base.sha }}..${{ github.sha }}"
invalid=0
while IFS= read -r message; do
[[ -z "$message" ]] && continue
[[ "$message" =~ ^Merge\ ]] && continue
if [[ "$message" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z0-9._/-]+\))?!?:\ .+ ]]; then
continue
fi
echo "Invalid conventional commit message: $message"
invalid=1
done < <(git log --format=%s "$RANGE")
if [[ $invalid -ne 0 ]]; then
exit 1
fi