From fff0ce62d3a41db7e464329e8a456a2c8cfde8f9 Mon Sep 17 00:00:00 2001 From: Karl Hopkinson-Turrell Date: Tue, 6 Sep 2022 10:26:33 +0100 Subject: [PATCH] ci: check commit message format (#4010) * ci: check commit message format * ci: switch to PR title checking * ci: target pull request checks to master --- .github/workflows/ci-pull-requests.yml | 28 +++++++++++++++++++++++++- .gitignore | 1 + 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 92d62c7f6f..c85f711a9a 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -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 + diff --git a/.gitignore b/.gitignore index 61b0358a67..6b80329bc6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ _START_PACKAGE nodelinter.config.json packages/*/package-lock.json packages/*/.turbo +*.swp