Commit Graph

173 Commits (dd2bf81ff889ec738f71923311bba814fd0cce4d)

Author SHA1 Message Date
sudo pacman -Syu dd2bf81ff8
refactor: move main to cmd (#18)
* refactor: move main to cmd

* chore: build cmd in github action
2021-05-05 15:18:47 +07:00
sudo pacman -Syu 0fa8f429db
refactor: use internal instead pkg (#17) 2021-05-05 15:11:54 +07:00
sudo pacman -Syu 846a150cfd
chore: improve wording, typo (#16) 2021-04-26 09:54:31 +07:00
Tran Hau 52da6c9b2b chore(changelog): generate v1.10.0 2021-04-23 03:52:23 +00:00
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
Tran Hau d897c94d29 chore(changelog): generate v1.9.1 2021-04-15 04:59:29 +00: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
Tran Hau 640d18c79d chore(changelog): generate v1.9.0 2021-04-15 04:29:49 +00: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
Tran Hau 3ea63124fc chore(changelog): generate v1.8.0 2021-04-14 10:14:48 +00:00
Tran Hau 021275bf93 chore(reamde): add --dry-run and --scope flag in guide 2021-04-14 10:10:17 +00: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
Tran Hau 20fa3205bf build: update go.mod 2021-04-14 05:09:57 +00:00
sudo pacman -Syu 5e9ff3a18f
feat: use my own color pkg to wrap fatih/color (#9)
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-14 11:46:17 +07:00
Tran Hau b3893cd1ba chore(changelog): generate v1.7.0 2021-04-11 16:21:34 +07:00
sudo pacman -Syu 031241e0b8
chore: only run github action on main branch (#8)
Co-authored-by: Tran Hau <ngtranhau@gmail.com>
2021-04-11 16:17:55 +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
Tran Hau 5ea13ce99f chore(changelog): generate v1.6.0 2021-03-29 13:58:28 +00: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
Tran Hau fa1c13eec3 build: bump go-git v5.3.0 2021-03-29 09:25:08 +00:00
Tran Hau af5f331dea chore: better build with many OS 2021-03-29 07:26:44 +00:00
Tran Hau cd0237299b chore(readme): remove lgtm alerts badge 2021-03-29 07:24:39 +00:00
Tran Hau fb4476aa87 chore: use semver for future 1.16 go version 2021-03-29 07:22:52 +00:00
Tran Hau 58c8a81e63 chore(changelog): generate v1.5.0 2021-03-22 05:47:56 +00: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 f2a995e15f build: update go.mod 2021-03-18 10:27:33 +00:00
Tran Hau 27c7d3be34 chore: bump go 1.16.2 in github action 2021-03-18 10:22:51 +00:00
Tran Hau c962ad103f chore: use go 1.16.x in github action 2021-03-18 10:21:19 +00:00
Tran Hau 7b32bb17b0 chore: remove gotip from github action 2021-03-18 10:15:20 +00:00
Tran Hau b508b6579b chore: remove gotip build as time consuming 2021-03-18 10:14:19 +00:00
Tran Hau 84e5921abd chore: use semver go version in github action 2021-03-18 10:10:16 +00:00
Tran Hau 4fd91c5c02 chore(changelog): generate v1.4.0 2021-03-17 05:14:50 +00:00
Tran Hau fc961796ea feat: deprecated ioutil 2021-03-17 05:13:28 +00:00
Tran Hau 616b403203 chore: bump go 1.16 in Dockerfile 2021-03-17 05:12:22 +00:00
Tran Hau 9ae8afd69e build: bump go 1.16 in go.mod 2021-03-17 05:11:43 +00:00
sudo pacman -Syu d40a42f1b7 build: update go.mod 2021-03-15 17:03:15 +00:00
sudo pacman -Syu b2ce2f5355 chore(readme): add guide for install with go 1.16 2021-03-15 17:00:47 +00:00
sudo pacman -Syu 7a5909f200 chore: bump go v1.16, golangci-lint v1.37 in github action 2021-03-04 02:59:06 +00:00
sudo pacman -Syu ce5a595c7b build: update go.mod 2021-03-04 02:58:40 +00:00
sudo pacman -Syu 019756cfa3 build: update go.mod 2021-02-19 13:18:04 +07:00
Tran Hau 379cd48435 chore(license): bump 2021 2021-01-21 15:54:46 +07:00
Tran Hau d51a5a5585 chore(changelog): generate v1.3.0 2021-01-20 14:58:16 +07:00
Tran Hau 3d7da7b4b0 chore(markdown): re-format file 2021-01-20 14:56:21 +07:00
Tran Hau 0206b95bf0 chore: move fmtErr global var 2021-01-20 14:54:35 +07:00
Tran Hau 59c5aaa8d1 chore: typo defaultRepository 2021-01-20 14:54:08 +07:00
Tran Hau 464f04d39d build: update go.mod 2021-01-20 14:53:22 +07:00
Tran Hau 7fa2f09e47 build: update go.mod 2021-01-18 13:59:35 +07:00
Tran Hau 047b9628e6 chore(readme): add lgtm badge 2021-01-12 01:40:40 +07:00