From fb5c197ef24e0e660ca7dbe99c73b917550ed994 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Thu, 6 Mar 2025 19:04:39 +0100 Subject: [PATCH] ci: add PR validation and auto labeling --- .github/workflows/pipeline.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 14b091d4..51d26f12 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -4,6 +4,10 @@ on: pull_request env: REQUIRED_PHP_EXTENSIONS: 'mongodb' +permissions: + contents: read + pull-requests: write + jobs: tests: runs-on: ubuntu-latest @@ -42,6 +46,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Conventional Commit + uses: ytanikin/pr-conventional-commits@1.4.1 + with: + task_types: '["feat", "fix", "docs", "test", "ci", "style", "refactor", "perf", "chore", "revert"]' + add_label: 'true' + custom_labels: '{"feat": "feature", "fix": "fix", "docs": "documentation", "test": "test", "ci": "CI/CD", "style": "codestyle", "refactor": "refactor", "perf": "performance", "chore": "chore", "revert": "revert"}' + - name: Setup PHP uses: shivammathur/setup-php@v2 with: