From 4d4a45f9ba95a09eca6cdfdc3f33692458157d18 Mon Sep 17 00:00:00 2001 From: Albert Date: Tue, 4 Aug 2026 07:27:16 +0000 Subject: [PATCH] ci: enforce semantic PR workflow policy --- .github/workflows/semantic-pull-request.yml | 27 +++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 4679de1..970e6d8 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -1,4 +1,5 @@ name: Semantic Pull Request + on: pull_request_target: types: @@ -6,11 +7,33 @@ on: - edited - synchronize +permissions: + pull-requests: read + +concurrency: + group: semantic-pr-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: main: name: Validate PR title - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 + timeout-minutes: 5 steps: - - uses: amannn/action-semantic-pull-request@v5 + - name: Validate pull request title + uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + perf + revert + docs + style + chore + refactor + test + build + ci