File tree Expand file tree Collapse file tree 3 files changed +20
-11
lines changed Expand file tree Collapse file tree 3 files changed +20
-11
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ export default defineConfig({
10
10
11
11
themeConfig : {
12
12
// https://vitepress.dev/reference/default-theme-config
13
+ editLink : {
14
+ pattern :
15
+ 'https://github.com/conventional-changelog/commitlint/edit/master/docs/:path' ,
16
+ } ,
17
+
13
18
logo : '/assets/icon.png' ,
14
19
15
20
nav : [
Original file line number Diff line number Diff line change @@ -125,17 +125,21 @@ workflows:
125
125
## GitLab CI
126
126
127
127
` ` ` yaml
128
- stages : ['lint', 'build', 'test']
129
128
lint:commit :
130
129
image : registry.hub.docker.com/library/node:alpine
131
- stage : lint
130
+ variables :
131
+ GIT_DEPTH : 0
132
132
before_script :
133
133
- apk add --no-cache git
134
134
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
135
135
script :
136
136
- echo "${CI_COMMIT_MESSAGE}" | npx commitlint
137
137
` ` `
138
138
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
+
139
143
# # GitLab CI with pre-build container
140
144
141
145
` ` ` yaml
@@ -189,4 +193,4 @@ workflows:
189
193
190
194
> [!TIP]
191
195
> 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).
Original file line number Diff line number Diff line change @@ -260,15 +260,15 @@ Infinity
260
260
261
261
``` js
262
262
[
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
268
268
' 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
+ ];
272
272
```
273
273
274
274
## subject-empty
You can’t perform that action at this time.
0 commit comments