File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -67,6 +67,16 @@ As part of `npm test`
67
67
}
68
68
` ` `
69
69
70
+ # ### Lint all commits in PR
71
+
72
+ ` ` ` sh
73
+ # On Travis CI
74
+ conventional-changelog-lint --from=$TRAVIS_BRANCH to=$TRAVIS_PULL_REQUEST_BRANCH
75
+
76
+ # E.g.:
77
+ conventional-changelog-lint --from=master to=docs/add-pr-recipe
78
+ ` ` `
79
+
70
80
# ### Travis
71
81
72
82
` ` ` yml
@@ -208,7 +218,7 @@ Perform `git fetch --shallow` before linting.
208
218
Most likely you are reading this because you where presented with an error message:
209
219
210
220
` ` `
211
- ' Could not get git history from shallow clone.
221
+ ' Could not get git history from shallow clone.
212
222
Use git fetch --shallow before linting.
213
223
Original issue: https://git.io/vyKMq\n Refer to https://git.io/vyKMv for details.'
214
224
` ` `
@@ -217,7 +227,7 @@ Most likely you are reading this because you where presented with an error messa
217
227
218
228
git supports checking out ` shallow` clones of a repository to save bandwith in times.
219
229
These limited copies do not contain a full git history. This makes ` conventional-changelog-lint`
220
- fail, especially when running on large commit ranges.
230
+ fail, especially when running on large commit ranges.
221
231
To ensure linting works every time you should convert a shallow git repo to a complete one.
222
232
Use ` git fetch --shallow` to do so.
223
233
@@ -226,7 +236,7 @@ Use `git fetch --shallow` to do so.
226
236
Ensure full git checkouts on TravisCI, add to ` .travis.yml` :
227
237
228
238
` ` ` yml
229
- before_install:
239
+ before_install:
230
240
- git fetch --unshallow
231
241
` ` `
232
242
You can’t perform that action at this time.
0 commit comments