diff --git a/.github/workflows/conventional-commit.yml b/.github/workflows/conventional-commit.yml new file mode 100644 index 0000000000..0a45e7fd30 --- /dev/null +++ b/.github/workflows/conventional-commit.yml @@ -0,0 +1,23 @@ +name: Prowler - Conventional Commit + +on: + pull_request: + types: + - "opened" + - "edited" + - "synchronize" + branches: + - "master" + - "v3" + - "v4.*" + - "v5.*" + +jobs: + conventional-commit-check: + runs-on: ubuntu-latest + steps: + - name: conventional-commit-check + id: conventional-commit-check + uses: agenthunt/conventional-commit-checker-action@v2.0.0 + with: + pr-title-regex: '^([^\s(]+)(?:\(([^)]+)\))?: (.+)'