From 294e117c5ae2e453b1da3e292620bf0531990181 Mon Sep 17 00:00:00 2001 From: Alixe Langshall Date: Tue, 7 May 2024 20:34:57 -0700 Subject: [PATCH] Do not permit merging with fixup or wip commits. --- .github/workflows/check_push.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/check_push.yml diff --git a/.github/workflows/check_push.yml b/.github/workflows/check_push.yml new file mode 100644 index 0000000..837ff44 --- /dev/null +++ b/.github/workflows/check_push.yml @@ -0,0 +1,19 @@ +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 \ No newline at end of file