Skip to content

Commit f53a486

Browse files
committed
docs: update readme
1 parent 5b9a78d commit f53a486

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.commit-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ checks:
2525
suggest: run command `git config user.email yourname@example.com`
2626

2727
- check: merge_base
28-
regex: origin/main # it can be master, develop, devel etc based on your project.
28+
regex: main # it can be master, develop, devel etc based on your project.
2929
error: Current branch is not rebased onto target branch
3030
suggest: please ensure your branch is rebased with the target branch

.github/workflows/commit-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
18-
fetch-depth: 0 # all history for all branches and tags
18+
fetch-depth: 0 # fetch all history for all branches and tags
1919
- uses: ./ # self test
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080

8181
> [!IMPORTANT]
8282
> `merge-base` is an experimental feature. by default it's disable.
83+
>
84+
> To use this feature, you need fetch all history for all branches by setting `fetch-depth: 0` in `actions/checkout`.
8385

8486
### `dry-run`
8587

0 commit comments

Comments
 (0)