https://github.com/afeiship/next-commits-parser
Git commits parser.
https://github.com/afeiship/next-commits-parser
commit git log next parse parser
Last synced: about 2 months ago
JSON representation
Git commits parser.
- Host: GitHub
- URL: https://github.com/afeiship/next-commits-parser
- Owner: afeiship
- License: mit
- Created: 2020-06-03T09:11:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T05:30:00.000Z (over 5 years ago)
- Last Synced: 2025-03-08T11:17:29.701Z (over 1 year ago)
- Topics: commit, git, log, next, parse, parser
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-commits-parser
> Git commits parser.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-commits-parser
```
## usage
```js
import '@feizheng/next-commits-parser';
nx.commitsParser(
fs.readFileSync('__tests__/logger.txt')
);
/*
{
feat: [
{
action: 'feat',
message: ' eee44e75 - feat: 习题类模板配置默认增加“解析”模块 (REDMINE-111120)'
}
],
fix: [
{
action: 'fix',
message: ' 3b643a37 - fix(content): 修复 简单富文本无法保存/分词带代码等问题(REDMINE-110775)'
},
{
action: 'fix',
message: ' 70454050 - fix(content): 知识点标签在任何状态下都可以打,不依赖应用内容的状态 (REDMINE-110620)'
},
{
action: 'fix',
message: ' 71a6e390 - fix(content): 独立应用内容列表图片显示根据上传的图片等比缩放'
},
{
action: 'fix',
message: ' 4bc79004 - fix(content): 选择题:选项内容不可以为空 (REDMINE-111040)'
},
{
action: 'fix',
message: ' 00daaa77 - fix(content): 内容编辑页面:应不可以编辑他人的反馈内容 - (REDMINE-110325)'
},
{
action: 'fix',
message: ' f18e9625 - fix: 修复:内容为空的时候,提交应该为disabled (REDMINE-110924)'
}
],
refactor: [
{
action: 'refactor',
message: ' ad1641be - refactor: modal styled + min-max height'
}
]
}
*/
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-commits-parser/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-commits-parser
[version-url]: https://npmjs.org/package/@jswork/next-commits-parser
[license-image]: https://img.shields.io/npm/l/@jswork/next-commits-parser
[license-url]: https://github.com/afeiship/next-commits-parser/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-commits-parser
[size-url]: https://github.com/afeiship/next-commits-parser/blob/master/dist/next-commits-parser.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-commits-parser
[download-url]: https://www.npmjs.com/package/@jswork/next-commits-parser