Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ checks:
suggest: run command `git config user.name "Your Name"`

- check: author_email
regex: ^\S+@\S+\.\S+$
regex: ^.+@.+$
error: The committer email seems invalid
suggest: run command `git config user.email yourname@example.com`
9 changes: 4 additions & 5 deletions .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ on:
jobs:
commit-check:
runs-on: ubuntu-latest
permissions:
permissions: # use permissions because of use pr-comments
contents: read
pull-requests: write
repository-projects: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./ # self test
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
- uses: ./ # self test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # used by `pr-comments`
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
with:
message: true
branch: true
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ on:
jobs:
commit-check:
runs-on: ubuntu-latest
permissions:
permissions: # use permissions because of use pr-comments
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # Checkout PR HEAD commit
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
- uses: commit-check/commit-check-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
with:
message: true
branch: true
Expand Down