Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/do_not_merge_fixups.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check commits

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
check-for-fixup-commits:
name: 'Check !fixup commits'

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all commits

- name: Check commit messages
run: |
echo "Target branch: ${{ github.base_ref }}"
forbidden=$(git log origin/${{ github.base_ref }}..HEAD --pretty=format:%s | grep -i '!fixup' || true)
if [ -n "$forbidden" ]; then
echo "❌ Found commit(s) with '!fixup' in the title:"
echo "$forbidden"
exit 1
fi