From 93fe95207bdf51872545d760e5e23f86e25bed0b Mon Sep 17 00:00:00 2001 From: alexandermendes Date: Wed, 27 Nov 2024 05:33:32 +0000 Subject: [PATCH] ci: run semantic commit check against PR title --- .github/workflows/semantic-pr-check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/semantic-pr-check.yml diff --git a/.github/workflows/semantic-pr-check.yml b/.github/workflows/semantic-pr-check.yml new file mode 100644 index 0000000..daeced5 --- /dev/null +++ b/.github/workflows/semantic-pr-check.yml @@ -0,0 +1,21 @@ +name: Semantic PR check + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - name: Check semantic PR title + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}