ci: check commit message format (#4010)

* ci: check commit message format

* ci: switch to PR title checking

* ci: target pull request checks to master
This commit is contained in:
Karl Hopkinson-Turrell 2022-09-06 10:26:33 +01:00 committed by GitHub
parent c28f69b276
commit fff0ce62d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

View file

@ -1,8 +1,33 @@
name: Test Pull Requests
on: [pull_request]
on:
pull_request:
branches:
- master
jobs:
check-pr-title:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# https://www.notion.so/n8n/Release-Process-fce65faea3d5403a85210f7e7a60d0f8
types: |
feat
fix
perf
test
docs
refactor
build
ci
requireScope: false
build:
runs-on: ubuntu-latest
@ -27,3 +52,4 @@ jobs:
npm run lint
env:
CI: true

1
.gitignore vendored
View file

@ -15,3 +15,4 @@ _START_PACKAGE
nodelinter.config.json
packages/*/package-lock.json
packages/*/.turbo
*.swp