From 3e283f974b1ffac9e253cb81ed8ad3f43dce5283 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 8 Nov 2023 23:37:56 -0600 Subject: [PATCH] ci: update semantic pr title action (#1282) --- .github/workflows/semantic-pr-title.yml | 26 ++++--------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml index f604e5df4..bed121e43 100644 --- a/.github/workflows/semantic-pr-title.yml +++ b/.github/workflows/semantic-pr-title.yml @@ -4,30 +4,12 @@ on: pull_request: types: - opened - - synchronize + - reopened - edited + - synchronize jobs: - validate: + semantic-pr-title: runs-on: ubuntu-latest steps: - - name: Check PR title - run: | - set -e - - Title='${{ github.event.pull_request.title }}' - CommitTypes="feat fix perf style docs refactor test build ci chore Merge Revert" - - echo "Validating PR title: \"$Title\"" - echo - - for Type in $CommitTypes; do - if [[ "$Title" =~ ^"$Type" ]]; then - echo "Title matches conventional commits." - exit 0 - fi - done - - echo "PR title does not follow conventional commits." - echo "Please refer to https://www.conventionalcommits.org/en/v1.0.0" - exit 1 + - uses: dequelabs/semantic-pr-title@v1 \ No newline at end of file