ci: add action to enforce semantic PR titles (#14)

* ci: add semantic PRs action

Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>

* ci: add release.yaml

Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>

* ci: update semantic pr action to latest version and use scopes instead of disalowScopes

Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>

* keep only validate PR title

Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>

---------

Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>
This commit is contained in:
Adem Baccara 2024-12-11 20:28:04 +01:00 committed by GitHub
parent 90c21dfc90
commit 346a74e728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 40 additions and 0 deletions

40
.github/workflows/semantic-prs.yaml vendored Normal file
View File

@ -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