Skip to content

Commit

Permalink
add lint rules for PR titles
Browse files Browse the repository at this point in the history
  • Loading branch information
k15r committed Feb 12, 2024
1 parent 84efabe commit be53de2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "daily"
commit-message:
prefix: "deps(dependabot)"
- package-ecosystem: "docker" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
commit-message:
prefix: "deps(dependabot)"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
commit-message:
prefix: "deps(dependabot)"
31 changes: 31 additions & 0 deletions .github/workflows/lint-conventional-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint PR Title
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@47b15d52c5c30e94a17ec87eb8dd51ff5221fed9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
deps
chore
docs
feat
fix
refactor
test
requireScope: false
# https://regex101.com/r/YybDgS/1
subjectPattern: ^([A-Z].*[^.]|bump .*)$

0 comments on commit be53de2

Please sign in to comment.