ci: GitHub action for conventional pull requests (#5)
This commit is contained in:
commit
82b6b3475f
2
.github/workflows/conventional-commits.yml
vendored
2
.github/workflows/conventional-commits.yml
vendored
@ -2,7 +2,7 @@ name: conventional commits
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
types: [ opened, synchronize, reopened, edited ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
15
.github/workflows/conventional-pull-requests.yml
vendored
Normal file
15
.github/workflows/conventional-pull-requests.yml
vendored
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user