Skip to content

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

fixup! ci: prevent accidental merge of fixup! commits

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

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 }}
fetch-depth: 0
- name: Check for fixup! commits
run: |
git fetch origin
git status
git log origin/main..HEAD
git log origin/main..HEAD | grep -ie '^ fixup!' && exit 1 || true