Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit fd48c5d

Browse files
committed
ci: add PR validation and auto labeling
1 parent 9ef0740 commit fd48c5d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on: pull_request
44
env:
55
REQUIRED_PHP_EXTENSIONS: 'mongodb'
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
tests:
913
runs-on: ubuntu-latest
@@ -42,6 +46,13 @@ jobs:
4246
- name: Checkout
4347
uses: actions/checkout@v4
4448

49+
- name: Conventional Commit
50+
uses: ytanikin/[email protected]
51+
with:
52+
task_types: '["feat", "fix", "docs", "test", "ci", "style", "refactor", "perf", "chore", "revert"]'
53+
add_label: 'true'
54+
custom_labels: '{"feat": "feature", "fix": "fix", "docs": "documentation", "test": "test", "ci": "CI/CD", "style": "codestyle", "refactor": "refactor", "perf": "performance", "chore": "chore", "revert": "revert"}'
55+
4556
- name: Setup PHP
4657
uses: shivammathur/setup-php@v2
4758
with:

0 commit comments

Comments
 (0)