Commit Graph

22 Commits (ab4ec6792515559bd7190d26d66f9cfc5f8edf1a)

Author SHA1 Message Date
sudo pacman -Syu ab4ec67925
refactor: better changelog parser and generator (#11)
* refactor(changelog): remove old, new prefix

* refactor: using new changelog func in cli

* refactor: replace markdown.Generate to GenerateText

* feat: move --verbose flag for generate command

* fix: diff new changelog with old changelog

* chore(markdown): remove unused GenerateLines

Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-14 17:06:48 +07:00
sudo pacman -Syu b98c62c46f
feat: support filter commit scope (#5)
* feat: add scope flag

* refactor: use scopes as map to quickly check

* feat: add scope to generate commits

* feat(convention): add scope to commit

* refactor: remove obsolete commit GetType

* refactor(convention): combie UpdateType and NewCommit

* feat(changelog): skip commit outside scopes

* feat(convention): remove () in scope

* feat(changelog): support filter scope

Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-03-22 12:44:54 +07:00
Tran Hau 176e35a16e fix: no newline at end of file 2021-01-12 01:37:11 +07:00
Tran Hau afcee321fa test(changelog): unit test for misc type 2021-01-12 01:33:32 +07:00
hau 84c73e3eef feat(convention): remove directly access conventional commit 2021-01-05 17:58:59 +07:00
hau 562557dbcd test(changelog): more test for generate changelog 2020-12-17 18:02:12 +07:00
hau 7694e1e1c7 test(changelog): re-gen golden data for correct header 2020-12-17 17:58:49 +07:00
hau d95f82e3ba fix(changelog): wrong header for fixed type 2020-12-17 17:55:52 +07:00
hau 98eb8cc928 test(changelog): unit test for changelog with markdown 2020-11-29 20:08:51 +07:00
hau 694261892c refactor(changelog): split get version header 2020-11-29 20:08:51 +07:00
hau e643400357 refactor(changelog): remove magic number 2020-11-29 20:08:51 +07:00
hau 7d904261ee refactor: rename markdown.Base -> markdown.Node 2020-11-29 20:08:51 +07:00
hau 25ead5004d feat(changelog): use newly markdown parser and generate 2020-11-29 20:08:47 +07:00
hau e374d982f0 fix(changelog): correct get lines and skip generate if no new lines 2020-11-11 00:06:04 +07:00
hau c435f22831 fix: empty CHANGELOG title when no new commits 2020-11-10 23:55:56 +07:00
hau def20e9743 docs: add github markdown in comment 2020-11-10 23:41:47 +07:00
hau b30c90f3e5 feat: only add type of change in CHANGELOG when there is changed 2020-11-10 18:01:43 +07:00
hau 16bf3ab92a feat: add --version flag to generate CHANGELOG.md 2020-11-10 17:56:26 +07:00
hau dc386b27f4 feat: write changelog to path 2020-11-10 17:36:50 +07:00
hau 6a5d3fe235 feat: format commit as markdown item 2020-11-10 17:12:13 +07:00
hau 063680ab31 feat: remove scope and description in conventional commit 2020-11-10 17:07:34 +07:00
hau e6ecf05dd8 feat: add markdown generator to generate markdown lines 2020-11-10 17:04:13 +07:00