From e2878c8c2d12d0d323116dedd2bcff37706a7eba Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sun, 20 Sep 2026 01:47:16 -0300 Subject: [PATCH 1/4] feat: add reusable conventional commits workflow --- .../block-unconventional-commits.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/block-unconventional-commits.yml diff --git a/.github/workflows/block-unconventional-commits.yml b/.github/workflows/block-unconventional-commits.yml new file mode 100644 index 0000000..659fbc3 --- /dev/null +++ b/.github/workflows/block-unconventional-commits.yml @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors +# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +# SPDX-License-Identifier: MIT + +name: Block unconventional commits + +on: + workflow_call: + +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 + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Validate conventional commits + uses: webiny/action-conventional-commits@7f91b1595ca1951cdb671ddc9f07a49081ec5b69 # v1.4.2 + with: + GITHUB_TOKEN: ${{ github.token }} From 3367f0e56375caa2810d7c097c07493f98138e1a Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sun, 20 Sep 2026 01:47:25 -0300 Subject: [PATCH 2/4] feat: add conventional commits caller template --- .../block-unconventional-commits.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 workflow-templates/block-unconventional-commits.yml diff --git a/workflow-templates/block-unconventional-commits.yml b/workflow-templates/block-unconventional-commits.yml new file mode 100644 index 0000000..5c60dd3 --- /dev/null +++ b/workflow-templates/block-unconventional-commits.yml @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +# SPDX-License-Identifier: AGPL-3.0-or-later + +# This workflow is published through the LibreCode organization catalog. +# Implementation: LibreCodeCoop/github-workflows + +name: Block unconventional commits + +on: + pull_request: + types: [opened, ready_for_review, reopened, synchronize] + +permissions: + contents: read + +jobs: + conventional-commits: + uses: LibreCodeCoop/github-workflows/.github/workflows/block-unconventional-commits.yml@e2878c8c2d12d0d323116dedd2bcff37706a7eba From 17080b074c42832741d4f8655c7ac7b970979df3 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sun, 20 Sep 2026 01:47:27 -0300 Subject: [PATCH 3/4] feat: add conventional commits template metadata --- .../block-unconventional-commits.properties.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 workflow-templates/block-unconventional-commits.properties.json diff --git a/workflow-templates/block-unconventional-commits.properties.json b/workflow-templates/block-unconventional-commits.properties.json new file mode 100644 index 0000000..6ef9110 --- /dev/null +++ b/workflow-templates/block-unconventional-commits.properties.json @@ -0,0 +1,8 @@ +{ + "name": "Block unconventional commits", + "description": "Require pull request commits to follow the Conventional Commits format.", + "iconName": "octicon git-commit", + "categories": [ + "Code Review" + ] +} From 5dcbe1619e47d390bd34780b0661ebbc241f2bc6 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sun, 20 Sep 2026 01:47:30 -0300 Subject: [PATCH 4/4] chore: license conventional commits template metadata --- .../block-unconventional-commits.properties.json.license | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 workflow-templates/block-unconventional-commits.properties.json.license diff --git a/workflow-templates/block-unconventional-commits.properties.json.license b/workflow-templates/block-unconventional-commits.properties.json.license new file mode 100644 index 0000000..1ce4e0c --- /dev/null +++ b/workflow-templates/block-unconventional-commits.properties.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2026 LibreCode coop and contributors +SPDX-License-Identifier: AGPL-3.0-or-later