Comments (3)
Here's a workaround for TravisCI (which does shallow clones): #6 (comment)
from commitlint.
My workaround had an issue with tag commits since those result in a detached head. My current workaround is to do this in my before_install
TravisCI yaml section:
git remote set-branches origin master && git fetch
git checkout master
# Go back to the original commit that TravisCI checked out:
git checkout -
I'm not sure exactly why but this makes the master branch visible to the linter.
from commitlint.
After chewing around on this for quite a while I'll go with the following approach:
- There is no way to get the git log messages from a shallow clone
- Document the need to pull in the full history for shallow clones. Provide TravisCI snippet.
- Detect shallow clones when running
getMessages
andprint a warningthrow with a link to said documentation
from commitlint.
Related Issues (20)
- fix: commitlint --extends is ignored for commitlint/config-conventional (v18.6.1) HOT 12
- fix: 18.6.1 throws "Please add rules to your `commitlint.config.js`" HOT 4
- I've had to revert to `17.8.1` HOT 2
- fix: allow configuration file without `rules` HOT 5
- fix: from to feature does not detect violations properly HOT 6
- Multi-architecture docker images (arm64 support) HOT 4
- chore: publish new version of @commitlint/read package HOT 2
- v19 gives `@commitlint/config-conventional` with yarn pnp HOT 18
- Module not found HOT 4
- Enable canary release for real-world testing before final release HOT 3
- fix: error TS2307: Cannot find module 'conventional-commits-parser' or its corresponding type declarations. HOT 6
- Using config example gives error running 19.0.3 HOT 22
- @commitlint/config-nx-scopes | Error [ERR_REQUIRE_ESM]: require() of ES Module Not Supported HOT 2
- Can not use @commitlint/cz-commitlint as commitizen's adapter HOT 5
- Commitlint cli running 19.0.3 gives error HOT 19
- fix: console show DeprecationWarning info when use @commitlint\[email protected]
- wrapper.mjs is not included in published @commitlint/config-conventional package HOT 11
- fix(conventional): should not allow scope with dash inside HOT 3
- ERR_IMPORT_ASSERTION_TYPE_MISSING with json config package
- fix: @commitlint/config-nx-scopes not working for nx since version v19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commitlint.