lihai 8d6c751f49 feat: push | лет назад: 2 | |
---|---|---|
.. | ||
lib | лет назад: 2 | |
node_modules | лет назад: 2 | |
CHANGELOG.md | лет назад: 2 | |
README.md | лет назад: 2 | |
license.md | лет назад: 2 | |
package.json | лет назад: 2 |
Read commit messages from a specified range or last edit
npm install --save @commitlint/read
const read = require('@commitlint/read');
// Read last edited commit message
read({edit: true}).then((messages) => console.log(messages));
// => ['I did something\n\n']
// Read from the third to second commit message from HEAD
read({from: 'HEAD~2', to: 'HEAD~1'}).then((messages) => console.log(messages));
// => ['Initial commit\n\n']
Consult docs/api for comprehensive documentation.