From 90a1673350189db2f3c9e04457d29e46bf6ab21d Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Tue, 30 Jul 2024 13:50:16 +0200 Subject: [PATCH] ci: Create semantic-pr.yml --- .github/workflows/semantic-pr.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/semantic-pr.yml diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml new file mode 100644 index 0000000..7a2c0bd --- /dev/null +++ b/.github/workflows/semantic-pr.yml @@ -0,0 +1,37 @@ +name: "Semantic PRs" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +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: + # Configure which types are allowed. + # Default: https://github.com/commitizen/conventional-commit-types + types: | + fix + feat + docs + refactor + ci + chore + test + style + # Configure which scopes are allowed. + #scopes: | + # core + # ui