feat(ci): introduce PR title linting with GitHub Actions

This commit is contained in:
keienWang 2024-01-30 17:55:08 +08:00
parent eaac53ec38
commit 2c6397d020

18
.github/workflows/check-pr-title.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Check PR title
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
jobs:
lint:
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}