Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'renovate.json'
- 'LICENSE'
- '.gitignore'
- '.github/workflows/lint_pullrequest.yml'
pull_request:
paths-ignore:
- '**.md'
Expand All @@ -19,6 +20,7 @@ on:
- 'renovate.json'
- 'LICENSE'
- '.gitignore'
- '.github/workflows/lint_pullrequest.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/lint_pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Lint Pull Request

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

permissions:
pull-requests: read
statuses: write

jobs:
semantic-pr:
name: Validate PR Title
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Validate PR Title
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
validateSingleCommit: true
validateSingleCommitMatchesPrTitle: true
Loading