Skip to content

Commit a29b3ca

Browse files
committed
ci: Add PR workflow
ref: #3 #1
1 parent 4d3c8d5 commit a29b3ca

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
3+
name: Pull Requests
4+
5+
6+
on:
7+
pull_request: {}
8+
9+
10+
jobs:
11+
12+
conventional-pr-title:
13+
name: Conventional PR Title
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
18+
- name: Conventional Commit PR Title
19+
uses: agenthunt/[email protected]
20+
with:
21+
pr-title-regex: "^(.+)(?:(([^)s]+)))?: (.+)"
22+
pr-body-regex: "(.*)"
23+
24+
25+
conventional-commits:
26+
name: Conventional Commits
27+
runs-on: ubuntu-latest
28+
steps:
29+
30+
- name: Check Commits
31+
uses: taskmedia/[email protected]
32+
with:
33+
token: ${{ github.token }}
34+
skip_merge: true
35+
skip_revert: true
36+
types: "build|bump|chore|ci|docs|feat|fix|perf|refactor|revert|style|test"
37+
38+
39+
pr_dependencies:
40+
runs-on: ubuntu-latest
41+
name: Dependency Check
42+
steps:
43+
44+
- uses: gregsdennis/dependencies-action@ae6e0529ef70f1366a21972f40b1ad0e1b5e3218 # v1.4.1
45+
# with:
46+
# custom-domains: my-custom-domain.io another.domain.com
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)