From 1e3e3192b8db76bdb3fc6b80057cf4e8971f842c Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Mon, 23 Oct 2023 13:41:20 -0400 Subject: [PATCH] chore: Adds semantic PR title validation --- .github/workflows/lint-pr.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lint-pr.yaml diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml new file mode 100644 index 0000000..d54e174 --- /dev/null +++ b/.github/workflows/lint-pr.yaml @@ -0,0 +1,20 @@ +name: "Lint PR" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}