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:
2020 suggest : run command `git config user.name "Your Name"`
2121
2222 - check : author_email
23- regex : ^\S+@\S+\.\S +$
23+ regex : ^.+@. +$
2424 error : The committer email seems invalid
2525 suggest : run command `git config user.email yourname@example.com`
Original file line number Diff line number Diff line change 88jobs :
99 commit-check :
1010 runs-on : ubuntu-latest
11- permissions : # used by ` pr-comments`
11+ permissions : # use permissions because of use pr-comments
1212 contents : read
1313 pull-requests : write
1414 steps :
1515 - uses : actions/checkout@v4
1616 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
1919 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
2121 with :
2222 message : true
2323 branch : true
Original file line number Diff line number Diff line change 2323jobs :
2424 commit-check :
2525 runs-on : ubuntu-latest
26- permissions :
26+ permissions : # use permissions because of use pr-comments
2727 contents : read
28- issues : write
2928 pull-requests : write
3029 steps :
3130 - uses : actions/checkout@v4
3231 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
3433 - uses : commit-check/commit-check-action@v1
3534 env :
36- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
3736 with :
3837 message : true
3938 branch : true
You can’t perform that action at this time.
0 commit comments