Skip to content

Commit

Permalink
ci: add semantic-pr workflow
Browse files Browse the repository at this point in the history
Ensure that the PR title follows semantic commit style
otherwise version bumping won't work because
it looks at the commit titles to figure out if a bump is required and
the category of bump
  • Loading branch information
abid-mujtaba committed Dec 2, 2023
1 parent 7d2b4a3 commit 6f63409
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: semantic-pr

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
lint:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6f63409

Please sign in to comment.