Use GitHub action instead of an app for validating PR title
This commit is contained in:
parent
192edcd720
commit
85e2437300
2 changed files with 26 additions and 7 deletions
7
.github/semantic.yml
vendored
7
.github/semantic.yml
vendored
|
|
@ -1,7 +0,0 @@
|
||||||
titleOnly: true
|
|
||||||
types:
|
|
||||||
- feat
|
|
||||||
- fix
|
|
||||||
- chore
|
|
||||||
- refactor
|
|
||||||
- docs
|
|
||||||
26
.github/workflows/lint-pr-title.yml
vendored
Normal file
26
.github/workflows/lint-pr-title.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: 'Lint PR title'
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- synchronize
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Validate PR title
|
||||||
|
if: github.repository == 'KonradSzwarc/devscard'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: amannn/action-semantic-pull-request@v5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
types: |
|
||||||
|
feat
|
||||||
|
fix
|
||||||
|
chore
|
||||||
|
refactor
|
||||||
|
docs
|
||||||
|
requireScope: false
|
||||||
Loading…
Reference in a new issue