File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ checks:
20
20
suggest : run command `git config user.name "Your Name"`
21
21
22
22
- check : author_email
23
- regex : ^\S+@\S+\.\S +$
23
+ regex : ^.+@. +$
24
24
error : The committer email seems invalid
25
25
suggest :
run command `git config user.email [email protected] `
Original file line number Diff line number Diff line change 8
8
jobs :
9
9
commit-check :
10
10
runs-on : ubuntu-latest
11
- permissions : # used by ` pr-comments`
11
+ permissions : # use permissions because of use pr-comments
12
12
contents : read
13
13
pull-requests : write
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
with :
17
- ref : ${{ github.event.pull_request.head.sha }}
18
- - uses : ./ # self test
17
+ ref : ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
18
+ - uses : commit-check/commit-check-action@v1
19
19
env :
20
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # used by ` pr-comments`
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
21
21
with :
22
22
message : true
23
23
branch : true
Original file line number Diff line number Diff line change 23
23
jobs :
24
24
commit-check :
25
25
runs-on : ubuntu-latest
26
- permissions :
26
+ permissions : # use permissions because of use pr-comments
27
27
contents : read
28
- issues : write
29
28
pull-requests : write
30
29
steps :
31
30
- uses : actions/checkout@v4
32
31
with :
33
- ref : ${{ github.event.pull_request.head.sha }} # Checkout PR HEAD commit
32
+ ref : ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
34
33
- uses : commit-check/commit-check-action@v1
35
34
env :
36
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
37
36
with :
38
37
message : true
39
38
branch : true
You can’t perform that action at this time.
0 commit comments