Skip to content

Commit cc23fd2

Browse files
Merge pull request #57 from conventional-changelog/master
[pull] master from conventional-changelog:master
2 parents 8ec9b44 + a2f27fa commit cc23fd2

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

docs/.vitepress/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export default defineConfig({
1010

1111
themeConfig: {
1212
// https://vitepress.dev/reference/default-theme-config
13+
editLink: {
14+
pattern:
15+
'https://github.com/conventional-changelog/commitlint/edit/master/docs/:path',
16+
},
17+
1318
logo: '/assets/icon.png',
1419

1520
nav: [

docs/guides/ci-setup.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,21 @@ workflows:
125125
## GitLab CI
126126
127127
```yaml
128-
stages: ['lint', 'build', 'test']
129128
lint:commit:
130129
image: registry.hub.docker.com/library/node:alpine
131-
stage: lint
130+
variables:
131+
GIT_DEPTH: 0
132132
before_script:
133133
- apk add --no-cache git
134134
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
135135
script:
136136
- echo "${CI_COMMIT_MESSAGE}" | npx commitlint
137137
```
138138
139+
GitLab limits `git clone` depth to
140+
[20 commits by default](https://docs.gitlab.com/ee/ci/pipelines/settings.html#limit-the-number-of-changes-fetched-during-clone).
141+
Setting `GIT_DEPTH: 0` removes this limitation, so `commitlint` can check larger MRs.
142+
139143
## GitLab CI with pre-build container
140144

141145
```yaml
@@ -189,4 +193,4 @@ workflows:
189193

190194
> [!TIP]
191195
> Help yourself adopting a commit convention by using an interactive commit prompt.
192-
> Learn how to use `@commitlint/prompt-cli` in the [Use prompt guide](/> guides/use-prompt)
196+
> Learn how to use `@commitlint/prompt-cli` in the [Use prompt guide](/guides/use-prompt).

docs/reference/rules.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ Infinity
260260

261261
```js
262262
[
263-
'lower-case', // lower case
264-
'upper-case', // UPPERCASE
265-
'camel-case', // camelCase
266-
'kebab-case', // kebab-case
267-
'pascal-case', // PascalCase
263+
'lower-case', // lower case
264+
'upper-case', // UPPERCASE
265+
'camel-case', // camelCase
266+
'kebab-case', // kebab-case
267+
'pascal-case', // PascalCase
268268
'sentence-case', // Sentence case
269-
'snake-case', // snake_case
270-
'start-case'. // Start Case
271-
]
269+
'snake-case', // snake_case
270+
'start-case', // Start Case
271+
];
272272
```
273273

274274
## subject-empty

0 commit comments

Comments
 (0)