Skip to content

refactor: remove mvp wording from unsupported subset messaging #15

refactor: remove mvp wording from unsupported subset messaging

refactor: remove mvp wording from unsupported subset messaging #15

Workflow file for this run

name: commitlint
on:
pull_request:
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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