File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Expand file tree Collapse file tree 4 files changed +11
-13
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 5
5
branches : ' main'
6
6
workflow_dispatch :
7
7
8
- permissions : # used by `pr-comments`
9
- contents : write
10
- pull-requests : write
11
-
12
8
jobs :
13
9
commit-check :
14
10
runs-on : ubuntu-latest
11
+ permissions : # use permissions because of use pr-comments
12
+ contents : read
13
+ pull-requests : 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
Original file line number Diff line number Diff line change 1
1
# Install commit-check CLI
2
2
# For details please see: https://github.com/commit-check/commit-check
3
- commit-check == 0.8.4
3
+ commit-check == 0.8.5
4
4
# Interact with the GitHub API.
5
5
PyGithub == 2.4.0
You can’t perform that action at this time.
0 commit comments