File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
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 yourname@example.com`
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 :
11
+ permissions : # use permissions because of use pr-comments
12
12
contents : read
13
13
pull-requests : write
14
- repository-projects : write
15
14
steps :
16
15
- uses : actions/checkout@v4
17
16
with :
18
- ref : ${{ github.event.pull_request.head.sha }}
19
- - uses : ./ # self test
17
+ ref : ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
18
+ - uses : ./ # self test
20
19
env :
21
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # used by ` pr-comments`
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
22
21
with :
23
22
message : true
24
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