Skip to content

Commit

Permalink
chore: Add a Conventional Commits linter as a GitHub action (kyma-pro…
Browse files Browse the repository at this point in the history
…ject#852)

Add the Conventional Commits linter as a GitHub action
  • Loading branch information
ameteiko authored Sep 8, 2023
1 parent 44c3913 commit 48067cf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint-conventional-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Title Check
run-name: ${{github.event.pull_request.title}}

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

jobs:
check:
name: Check Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
deps
chore
docs
feat
fix
test
requireScope: false
# https://regex101.com/r/YybDgS/1
subjectPattern: ^([A-Z].*[^.]|bump .*)$

0 comments on commit 48067cf

Please sign in to comment.