зеркало из https://github.com/microsoft/rnx-kit.git
91b10ad1c9 | ||
---|---|---|
.. | ||
src | ||
test | ||
CHANGELOG.md | ||
README.md | ||
eslint.config.js | ||
package.json | ||
tsconfig.json |
README.md
@rnx-kit/commitlint-lite
Lint commit message according to Conventional Commits.
Usage
Pipe the commit message to @rnx-kit/commitlint-lite
:
echo 'ci: lint commit messages' | npx @rnx-kit/commitlint-lite
Example: In a PR, only the first commit's message needs to conform if you always squash before merging:
git log --format='%s' origin/trunk..HEAD | tail -1 | npx @rnx-kit/commitlint-lite