Use GitHub action instead of an app for validating PR title

This commit is contained in:
Konrad Szwarc 2023-01-29 12:23:36 +01:00
parent 192edcd720
commit 85e2437300
2 changed files with 26 additions and 7 deletions

View file

@ -1,7 +0,0 @@
titleOnly: true
types:
- feat
- fix
- chore
- refactor
- docs

26
.github/workflows/lint-pr-title.yml vendored Normal file
View 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