Commit Graph

19 Commits (228ca6370e2bf4c35767700655b94d6d5b2939bb)

Author SHA1 Message Date
sudo pacman -Syu 7d04c80d6e
fix: correct time layout (#13)
* fix: use correct date layout

* chore: wrap date layout inside parenthesis

Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-15 11:59:01 +07:00
sudo pacman -Syu 552034123d
feat: show time of each commit as the default (#12)
* feat(git): add author time

* feat(git): add author info

* refactor: use commit option to generate convertional commit

* feat: add author date to convention commit

* refactor(changelog): replace t time var with when

Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-15 11:28:04 +07:00
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
hau 84c73e3eef feat(convention): remove directly access conventional commit 2021-01-05 17:58:59 +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 e6ecf05dd8 feat: add markdown generator to generate markdown lines 2020-11-10 17:04:13 +07:00