From fa0633747bd5d4fe658593b7e2b0a1b3e0da8844 Mon Sep 17 00:00:00 2001 From: Diego Casella Date: Thu, 21 Mar 2024 01:48:28 +0100 Subject: [PATCH] chore(RE-4): add semantic commit validation --- .github/workflows/semantic-commit-linter.yml | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/semantic-commit-linter.yml diff --git a/.github/workflows/semantic-commit-linter.yml b/.github/workflows/semantic-commit-linter.yml new file mode 100644 index 0000000..a03b7dc --- /dev/null +++ b/.github/workflows/semantic-commit-linter.yml @@ -0,0 +1,23 @@ +name: "Semantic Commit Linter" + +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 }} + with: + scopes: RE-\d+ + requireScope: false