sudo pacman -Syu
2a12f7649b
refactor(cli): move all cli related to cli pkg ( #15 )
...
* refactor: move all cli related to cli pkg
* refactor: move all usage to const
* fix: verbose flag should be inside generate command
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-23 10:51:27 +07:00
sudo pacman -Syu
228ca6370e
feat: add color to dry run ( #14 )
...
* feat: add color to dry run mode
* chore: better wording
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-23 10:36:10 +07:00
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
c495ff942c
feat: add dry run ( #10 )
...
* feat: add --dry-run flag
* feat: use pkg/diff to actually compare old and new changelog
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-14 14:31:00 +07:00
sudo pacman -Syu
32a1b40013
refactor: use better commands and flags name ( #7 )
...
* build: update go.mod
* refactor: replace debug with verbose
* refactor: split action from main
* refactor: move all cli app inside pkg cli
* chore(readme): use generate command
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-11 16:11:41 +07:00
sudo pacman -Syu
3a201be3ec
docs: documenting export methods ( #6 )
...
* docs(git): explain Commit and Repository
* docs(git): better comment for Log method
* docs(markdown): add comment for Generate and Parse method
* docs(convention): add comment for conventional commit
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-03-29 20:57:06 +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
3d7da7b4b0
chore(markdown): re-format file
2021-01-20 14:56:21 +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
Tran Hau
54a97bbaf9
test(convention): unit test for misc type
2021-01-12 01:27:08 +07:00
Tran Hau
daf3f0b36d
refactor(convention): replace commit parseHeader with updateType
2021-01-12 01:25:06 +07:00
hau
84c73e3eef
feat(convention): remove directly access conventional commit
2021-01-05 17:58:59 +07:00
hau
d045e1d06a
feat(git): stop with begin, end fn
2021-01-05 16:20:32 +07:00
hau
c68f833998
chore(git): useless type cast
2021-01-05 16:16:08 +07:00
hau
efa0a74305
feat(git): only use git log, remove logIncludeTo
2021-01-05 16:15:31 +07:00
hau
2dd6ffd1eb
feat: only use --to to replace --exclude-to, --include-to
2021-01-05 14:16:00 +07:00
hau
d3648c41e3
chore(git): better error return
2020-12-23 18:05:36 +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
e76289a94d
test(convetion): unit test for mixedcase types
2020-12-02 15:48:22 +07:00
hau
e915d51338
feat(convention): support mixed-case for type
2020-12-02 15:45:44 +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
f31cc23ee2
refactor(markdown): rename parser -> parse
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
c8e5bf3ffc
feat(markdown): double newline when generate
2020-11-29 20:06:30 +07:00
hau
848b362683
feat: generate 1 line for markdown
2020-11-29 20:06:30 +07:00
hau
b09a0eae9a
feat: parse markdown to base syntax guide
2020-11-29 20:06:30 +07:00
hau
2c9a60c42f
feat: use testify assert
2020-11-29 20:06:30 +07:00
hau
080796c15c
feat: add markdown parser
2020-11-29 20:06:30 +07:00
hau
71630969cd
feat(convention): make sure header commit is trimmed space
2020-11-11 10:28:05 +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
3f0d05c741
refactor: remove useless return error in git
2020-11-10 23:39:40 +07:00
hau
688223878d
docs: add comment for git methods
2020-11-10 23:36:32 +07:00
hau
b06387dff2
feat: add exclude-to, include-to flag
2020-11-10 23:28:58 +07:00
hau
f28a891f0b
feat: add log include to revision in git
2020-11-10 23:03:28 +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