Skip to content

Commit c13e245

Browse files
wyf027cursoragent
andcommitted
docs: use git-cliff in copy-paste command examples
Replace `git cliff` with `git-cliff` in documentation and CI examples so commands work in environments where git is not installed (e.g. Alpine with only the git-cliff package). Fixes #1387 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7e35ff5 commit c13e245

19 files changed

Lines changed: 51 additions & 51 deletions

.github/actions/run-fixtures-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runs:
5656
if [ -n '${{ inputs.include-path-env }}' ]; then
5757
export GIT_CLIFF_INCLUDE_PATH='${{ inputs.include-path-env }}'
5858
fi
59-
git cliff --config cliff.toml ${{ inputs.command }} > output.md
59+
git-cliff --config cliff.toml ${{ inputs.command }} > output.md
6060
echo "$?" > output.rc
6161
if [ -f output.md ]; then
6262
cat output.md

website/docs/configuration/remote.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you are using GitHub, you can use the `--github-repo` argument or `GITHUB_REP
3535
e.g.
3636

3737
```bash
38-
git cliff --github-repo orhun/git-cliff
38+
git-cliff --github-repo orhun/git-cliff
3939
```
4040

4141
Same applies for GitLab/Bitbucket with `--gitlab-repo`/`--gitea-repo`/`--bitbucket-repo` and `GITLAB_REPO`/`GITEA_REPO`/`BITBUCKET_REPO` environment variables.
@@ -47,7 +47,7 @@ Sets the access token for the remote.
4747
If you are using GitHub, then you can also pass this value via `--github-token` argument or `GITHUB_TOKEN` environment variable as follows:
4848

4949
```bash
50-
git cliff --github-token <TOKEN>
50+
git-cliff --github-token <TOKEN>
5151
```
5252

5353
Same applies for GitLab/Bitbucket with `--gitlab-token`/`--gitea-token`/`--bitbucket-token` and `GITLAB_TOKEN`/`GITEA_TOKEN`/`BITBUCKET_TOKEN` environment variables.

website/docs/github-actions/setup-git-cliff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ While `git-cliff-action` uses the Docker image generated by [docker.yml](https:/
1414
uses: kenji-miyake/setup-git-cliff@v1
1515

1616
- name: Run git-cliff
17-
run: git cliff
17+
run: git-cliff
1818
```
1919
2020
See a practical example [here](https://github.com/autowarefoundation/autoware-github-actions/blob/v1/generate-changelog/action.yaml).

website/docs/integration/azure-devops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To set an access token, you can use the [configuration file](/docs/configuration
5858
For example:
5959

6060
```bash
61-
AZURE_DEVOPS_TOKEN="***" git cliff --azure-devops-repo "myorg/myproject/myrepo"
61+
AZURE_DEVOPS_TOKEN="***" git-cliff --azure-devops-repo "myorg/myproject/myrepo"
6262
```
6363

6464
:::tip

website/docs/integration/bitbucket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To set an access token, you can use the [configuration file](/docs/configuration
5050
For example:
5151

5252
```bash
53-
BITBUCKET_TOKEN="***" git cliff --bitbucket-repo "orhun/git-cliff"
53+
BITBUCKET_TOKEN="***" git-cliff --bitbucket-repo "orhun/git-cliff"
5454
```
5555

5656
:::tip

website/docs/integration/gitea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To set an access token, you can use the [configuration file](/docs/configuration
5050
For example:
5151

5252
```bash
53-
GITEA_TOKEN="***" git cliff --gitea-repo "orhun/git-cliff"
53+
GITEA_TOKEN="***" git-cliff --gitea-repo "orhun/git-cliff"
5454
```
5555

5656
:::tip

website/docs/integration/github.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To set the access token, you can use the [configuration file](/docs/configuratio
5454
For example:
5555

5656
```bash
57-
GITHUB_TOKEN="***" git cliff --github-repo "orhun/git-cliff"
57+
GITHUB_TOKEN="***" git-cliff --github-repo "orhun/git-cliff"
5858
```
5959

6060
:::tip
@@ -191,7 +191,7 @@ If you would like to create a changelog similar to the GitHub's default format,
191191
Since it is already embedded into the binary, you can simply run:
192192

193193
```bash
194-
git cliff -c github
194+
git-cliff -c github
195195
```
196196

197197
This will generate a changelog such as:

website/docs/integration/gitlab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To set an access token, you can use the [configuration file](/docs/configuration
5050
For example:
5151

5252
```bash
53-
GITLAB_TOKEN="***" git cliff --gitlab-repo "orhun/git-cliff"
53+
GITLAB_TOKEN="***" git-cliff --gitlab-repo "orhun/git-cliff"
5454
```
5555

5656
:::tip

website/docs/sourcehut.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ environment:
2020
tasks:
2121
- git-cliff: |
2222
cd $dir
23-
git cliff -o CHANGELOG.md
23+
git-cliff -o CHANGELOG.md
2424
ssh-keyscan -t rsa git.sr.ht >> ~/.ssh/known_hosts
2525
git remote set-url origin $source
2626
git checkout main

website/docs/usage/adding-commits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_position: 9
77
In some cases, you might want to include commit messages in the changelog that yet don't exist. One example would be having "the commit message that updates the changelog" in the changelog. (🤔)
88

99
```bash
10-
git cliff -o CHANGELOG.md
10+
git-cliff -o CHANGELOG.md
1111
git add CHANGELOG.md
1212
git commit -m "chore(release): update CHANGELOG.md for 1.0.0"
1313
```
@@ -19,7 +19,7 @@ In the example above, `CHANGELOG.md` will not have the latest commit message sin
1919
commit_msg="chore(release): update CHANGELOG.md for 1.0.0"
2020

2121
# generate changelog and pretend a commit exists as "$commit_msg"
22-
git cliff --with-commit "$commit_msg" -o CHANGELOG.md
22+
git-cliff --with-commit "$commit_msg" -o CHANGELOG.md
2323

2424
# create the actual commit
2525
git add CHANGELOG.md

0 commit comments

Comments
 (0)