Skip to content

Commit 16d19c9

Browse files
authored
docs(readme): add note about fetch-depth (#25)
* Update README.md Updating README.md to explicitly mention that fetch-depth is a key argument to checkout repo, otherwise this action is almost unusable. * Update README.md Usage of git admonition syntax and some edits on documentation.
1 parent 5594a53 commit 16d19c9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ This action generates a changelog based on your Git history using [git-cliff](ht
1919

2020
- `OUTPUT`: Output file. (Default: `"git-cliff/CHANGELOG.md"`)
2121

22+
> [!IMPORTANT]
23+
> It is important to checkout the repositories as:
24+
>
25+
> ```yaml
26+
> - name: Checkout
27+
> uses: actions/checkout@v4
28+
> with:
29+
> fetch-depth: 0
30+
> ```
31+
>
32+
> `fetch-depth: 0` the is key input here to checkout action.
33+
>
34+
> Otherwise, you might end-up getting empty changelogs or `git ref` errors depending on arguments passed to `git-cliff`.
35+
2236
### Examples
2337
2438
#### Simple

0 commit comments

Comments
 (0)