From aaac533ca4630b3efd2141bf38bbcc7699b2972d Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 26 Sep 2019 12:54:29 +0200 Subject: [PATCH] Add action that checks for autosquash commits in pull requests We want to block merging for these, to ensure that you autosquash before merging. Ideally we'd like automatic (or at least via a bot) autosquashing, but that is not currently possible. --- .github/workflows/block-autosquash-commits.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/block-autosquash-commits.yml diff --git a/.github/workflows/block-autosquash-commits.yml b/.github/workflows/block-autosquash-commits.yml new file mode 100644 index 00000000..43d67717 --- /dev/null +++ b/.github/workflows/block-autosquash-commits.yml @@ -0,0 +1,15 @@ +on: pull_request + +name: Pull Requests + +jobs: + message-check: + name: Block Autosquash Commits + + runs-on: ubuntu-latest + + steps: + - name: Block Autosquash Commits + uses: xt0rted/block-autosquash-commits-action@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}