Do not permit merging with fixup or wip commits. #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check branch conformity | |
on: | |
push: | |
jobs: | |
prevent-fixup-commits: | |
runs-on: ubuntu-latest | |
env: | |
target: debian-bookworm | |
distro: debian | |
version: bookworm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: prevent fixup commits | |
run: | | |
git fetch origin | |
git status | |
git log origin/main..HEAD | grep -ie '^ fixup\|^ wip' && exit 1 || true |