Skip to content

Commit

Permalink
ci: add action to enforce semantic PR titles (#14)
Browse files Browse the repository at this point in the history
* ci: add semantic PRs action

Signed-off-by: Adem Baccara <[email protected]>

* ci: add release.yaml

Signed-off-by: Adem Baccara <[email protected]>

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

Signed-off-by: Adem Baccara <[email protected]>

* keep only validate PR title

Signed-off-by: Adem Baccara <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
  • Loading branch information
Adembc authored Dec 11, 2024
1 parent 90c21df commit 346a74e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/semantic-prs.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
fix
feat
improve
refactor
revert
test
ci
docs
chore
scopes: |
nb
pvc
tb
ws
requireScope: false

0 comments on commit 346a74e

Please sign in to comment.