From 6b4d521a4214e70277ce4bc64a6ee65e4f9be2cd Mon Sep 17 00:00:00 2001 From: blizzz Date: Mon, 20 Jun 2022 10:28:18 +0200 Subject: [PATCH] Add fixup checker action --- .github/workflows/fixup.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fixup.yml diff --git a/.github/workflows/fixup.yml b/.github/workflows/fixup.yml new file mode 100644 index 00000000..e2da6329 --- /dev/null +++ b/.github/workflows/fixup.yml @@ -0,0 +1,25 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization + +name: Pull request checks + +on: pull_request + +permissions: + contents: read + +jobs: + commit-message-check: + permissions: + pull-requests: write + name: Block fixup and squash commits + + runs-on: ubuntu-latest + + steps: + - name: Run check + uses: xt0rted/block-autosquash-commits-action@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}