Skip to content

Commit a8f1141

Browse files
committed
docs: remove fetch-depth from instructions since it's not needed anymore
1 parent a31f4b5 commit a8f1141

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
DOCKER_REGISTRY_URL: registry.hub.docker.com
3737
steps:
3838
- uses: actions/checkout@v3
39-
with:
40-
fetch-depth: 0
4139
- uses: actions/setup-node@v3
4240
with:
4341
node-version: '16.5.0'

.github/workflows/commitlint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v3
9-
with:
10-
fetch-depth: 0
119
- run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml
1210
- run: echo -n '' > .dockerignore
1311
- uses: actions/setup-node@v3
@@ -33,8 +31,6 @@ jobs:
3331
runs-on: ubuntu-latest
3432
steps:
3533
- uses: actions/checkout@v3
36-
with:
37-
fetch-depth: 0
3834
- uses: actions/setup-node@v3
3935
with:
4036
node-version: '16.5.0'

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
2018
- uses: wagoid/commitlint-github-action@v5
2119
```
2220
2321
Alternatively, you can run on other event types such as `on: [push]`. In that case the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow.
2422

25-
**Note**: It's necessary that you specify the `fetch-depth` argument to `actions/checkout@v2` step. By default they fetch only latest commit of the branch, but we need more commits since we validate a range of commit messages.
26-
2723
## Inputs
2824

2925
You can supply these inputs to the `wagoid/commitlint-github-action@v5` step.
@@ -139,8 +135,6 @@ jobs:
139135
runs-on: ubuntu-latest
140136
steps:
141137
- uses: actions/checkout@v3
142-
with:
143-
fetch-depth: 0
144138
- uses: actions/setup-node@v2
145139
with:
146140
node-version: '14'

0 commit comments

Comments
 (0)