Skip to content

Commit b8abd8c

Browse files
authored
feat: add rules for PRs (#315)
* configure required PR title check * require title to start lower case
1 parent 2263197 commit b8abd8c

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "daily"
12+
commit-message:
13+
prefix: "deps(dependabot)"
1214
- package-ecosystem: "docker" # See documentation for possible values
1315
directory: "/" # Location of package manifests
1416
schedule:
1517
interval: "daily"
18+
commit-message:
19+
prefix: "deps(dependabot)"
1620
- package-ecosystem: "github-actions" # See documentation for possible values
1721
directory: "/" # Location of package manifests
1822
schedule:
1923
interval: "daily"
24+
commit-message:
25+
prefix: "deps(dependabot)"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint PR Title
2+
run-name: ${{github.event.pull_request.title}}
3+
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
check:
14+
name: Check Title
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: amannn/action-semantic-pull-request@47b15d52c5c30e94a17ec87eb8dd51ff5221fed9
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
types: |
22+
deps
23+
chore
24+
docs
25+
feat
26+
fix
27+
refactor
28+
test
29+
requireScope: false
30+
# https://regex101.com/r/YybDgS/1
31+
subjectPattern: ^(?![A-Z]).+$

0 commit comments

Comments
 (0)