Skip to content

fixup! ci: prevent accidental merge of fixup! commits #2

fixup! ci: prevent accidental merge of fixup! commits

fixup! ci: prevent accidental merge of fixup! commits #2

Workflow file for this run

name: Validate commit messages
on:
push:
jobs:
prevent-fixup-commits:
name: Check for fixup! commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Check for fixup! commits
run: |
git fetch origin
git status
git log origin/main..HEAD
git --pretty=format:%s log origin/main..HEAD | grep -ie '^fixup!' && exit 1 || true