ci: GitHub action for conventional pull requests (#5)

This commit is contained in:
Matouš Volf 2024-08-15 12:18:31 +02:00 committed by GitHub
commit 8d25b63953
2 changed files with 16 additions and 1 deletions

View File

@ -2,7 +2,7 @@ name: conventional commits
on: on:
pull_request: pull_request:
branches: [ main ] types: [ opened, synchronize, reopened, edited ]
jobs: jobs:
build: build:

View File

@ -0,0 +1,15 @@
name: conventional pull requests
on:
pull_request:
types: [ opened, synchronize, reopened, edited ]
jobs:
validate-pr-title:
runs-on: ubuntu-22.04
steps:
- name: PR Conventional Commit Validation
uses: ytanikin/PRConventionalCommits@1.1.0
with:
task_types: '["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"]'
add_label: 'false'