Skip to content

Commit

Permalink
Merge pull request #278 from Dennisbonke/gha
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Oct 23, 2023
2 parents 1d11513 + 10e90b7 commit 1de9ad5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/fixups.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check if PR has fixups

on:
pull_request:

jobs:
find-fixups:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
set -e -o pipefail
git rev-list 'HEAD^..HEAD' \
| while read -r COMMIT; do
printf 'pondering commit %s\n' "$COMMIT"
git show -s "$COMMIT"
if git show -s --format='%s' "$COMMIT" | grep -q '^fixup! '; then
exit 1
fi
done
printf 'ready to merge!\n'

0 comments on commit 1de9ad5

Please sign in to comment.