add new fixup workflow from nextcloud org
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 18 May 2022 10:11:03 +0000 (12:11 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 20 May 2022 11:53:18 +0000 (13:53 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
.github/workflows/fixup.yml [new file with mode: 0644]

diff --git a/.github/workflows/fixup.yml b/.github/workflows/fixup.yml
new file mode 100644 (file)
index 0000000..6092cc3
--- /dev/null
@@ -0,0 +1,20 @@
+# 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
+
+jobs:
+  commit-message-check:
+    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 }}