From 1b4461934ef1f187080e45ff198e8759cfc44943 Mon Sep 17 00:00:00 2001 From: Adem Baccara <71262172+Adembc@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:09:04 +0100 Subject: [PATCH] ci: add action to enforce semantic PR titles (#158) Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com> --- .github/workflows/semantic-prs.yaml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/semantic-prs.yaml diff --git a/.github/workflows/semantic-prs.yaml b/.github/workflows/semantic-prs.yaml new file mode 100644 index 00000000..ee650e84 --- /dev/null +++ b/.github/workflows/semantic-prs.yaml @@ -0,0 +1,40 @@ +name: Semantic PRs + +on: + pull_request_target: + types: + - edited + - opened + - reopened + - synchronize + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }} + cancel-in-progress: true + +jobs: + validate_title: + name: Validate Title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5.5.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + fix + feat + improve + refactor + revert + test + ci + docs + chore + + scopes: | + nb + pvc + tb + ws + requireScope: false \ No newline at end of file