diff --git a/.github/workflows/fixup_check.yml b/.github/workflows/fixup_check.yml new file mode 100644 index 000000000..e1862d11a --- /dev/null +++ b/.github/workflows/fixup_check.yml @@ -0,0 +1,11 @@ +name: Git Checks + +on: [pull_request] + +jobs: + block-fixup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.0.0 + - name: Block Fixup Commit Merge + uses: 13rac1/block-fixup-merge-action@v2.0.0 diff --git a/ci/check_fixup.sh b/ci/check_fixup.sh deleted file mode 100755 index ed43b0a4b..000000000 --- a/ci/check_fixup.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -git fetch origin master:master # on CIs it is common to fetch only the current branch - -messages=$(git log --format=%s master..) # commit messages between this branch and master - -if [[ $messages =~ "fixup!" ]]; then - echo 'Failure: Some commit message contains "fixup!" string.' - exit 1 -else - echo 'Success: No commit messages containing "fixup!" string.' -fi