From cbb2412c1ca5a15baad5e8085c25ef736d674d34 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Mon, 22 Aug 2022 15:42:19 +0100 Subject: [PATCH] ci: lint PR titles according to conventional commits (#1615) * CI: add validation for PR titles This will help us to automate release notes in future * Fix: try putting CI workflows in correct location :cry: * WIP: use `pull_request` to trigger CI for initial commit --- .github/workflows/semantic-pr-title.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/semantic-pr-title.yml diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml new file mode 100644 index 0000000000..f45ee86162 --- /dev/null +++ b/.github/workflows/semantic-pr-title.yml @@ -0,0 +1,18 @@ +name: "Lint PR" + +on: + pull_request: + types: + - opened + - edited + - synchronize + workflow_dispatch: + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}