Skip to content

Commit

Permalink
feat: add rules for PRs (#76)
Browse files Browse the repository at this point in the history
* add lint rules for PR titles

* require title to start lower case
  • Loading branch information
k15r authored and Tibor Kiss committed Sep 3, 2024
1 parent d14afc9 commit b5db108
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]).+$

0 comments on commit b5db108

Please sign in to comment.