aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-26 12:15:06 +0100
committerGitHub <noreply@github.com>2024-02-26 12:15:06 +0100
commit663ecd949422c3c28269632e528e085af14da1b9 (patch)
treeeccea4b01e5357e891a0ba72893538848ceeea93 /.github/workflows
parent102773a00029cf8263ffda3f15b5f35539196389 (diff)
parent9e3e4a2eb194a98d02a56d94c83a763e2856364a (diff)
downloadnextcloud-server-663ecd949422c3c28269632e528e085af14da1b9.tar.gz
nextcloud-server-663ecd949422c3c28269632e528e085af14da1b9.zip
Merge pull request #43444 from nextcloud/skjnldsv-patch-1
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/block-unconventional-commits.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/block-unconventional-commits.yml b/.github/workflows/block-unconventional-commits.yml
new file mode 100644
index 00000000000..295c30bd62a
--- /dev/null
+++ b/.github/workflows/block-unconventional-commits.yml
@@ -0,0 +1,31 @@
+# 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: Block unconventional commits
+
+on:
+ pull_request:
+ types: [opened, ready_for_review, reopened, synchronize]
+
+permissions:
+ contents: read
+
+concurrency:
+ group: block-unconventional-commits-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ block-unconventional-commits:
+ name: Block unconventional commits
+
+ runs-on: ubuntu-latest-low
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+
+ - uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}