ci: added conventional commits check (#1487)

Fixes #1366
This commit is contained in:
Sergey Kuznetsov
2024-06-24 15:11:03 +01:00
committed by GitHub
parent c7fee023e7
commit 062ef9f0a5
3 changed files with 19 additions and 2 deletions

17
.github/workflows/check_pr_title.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Check PR title
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches: [develop]
jobs:
check_title:
runs-on: ubuntu-20.04
permissions:
pull-requests: write
steps:
- uses: ytanikin/PRConventionalCommits@1.2.0
with:
task_types: '["feat","fix","docs","test","ci","style","refactor","perf","chore","revert"]'
add_label: true
custom_labels: '{"feat":"enhancement", "fix":"bug", "docs":"documentation", "test":"testability", "ci":"ci", "style":"refactoring", "perf":"performance", "chore":"tooling"}'