Commit graph

197 commits

Author SHA1 Message Date
Derek Smith
c257740de9 chore: update changelog for v0.14.2 2021-04-16 07:17:02 -05:00
Khosrow Moossavi
bfac4702a7
fix: add CommitGroupTitleOrder back to Options (#143)
This was, accidentally, removed in part of one PR a while back and
caused the Custom sort to not work properly.

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-04-14 17:01:05 -04:00
renovate[bot]
57aad771c8
chore(deps): update alpine docker tag to v3.13.5 (#144)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-14 15:46:29 -04:00
Derek Smith
bc0f363327 chore: update changelog for v0.14.1 2021-04-13 16:35:35 -05:00
Derek Smith
fdd421b057
fix(template): address regression in string functions for template engine (#142)
It appears that `Sprig` flips the inputs of the `contains`, `hasPrefix`, `replace`
and `hasSuffix` `strings` methods. This appears to be the cause of the regression.

See: https://github.com/Masterminds/sprig/blob/master/functions.go#L149-L152

This results in a regression against the previous implementations of the template
functions.

Signed-off-by: Derek Smith <derek@clokwork.net>
2021-04-13 16:27:42 -05:00
Khosrow Moossavi
7cc56b1256
chore: add docker target to Makefile (#138)
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-04-02 12:19:50 -04:00
renovate[bot]
f76afed086
chore(deps): update alpine docker tag to v3.13.4 (#136)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-01 10:47:18 -05:00
Anthony MARQUES
2307bff72f
feat: add docker image on release and master (#135)
* feat: add docker image on release and master

* resolves return on the PR

* Add Installation docker doc

* Update .github/workflows/publish.yml

Co-authored-by: Derek Smith <derek@clokwork.net>

* Resovle PR conversations

* No v in RawVersion

Co-authored-by: Derek Smith <derek@clokwork.net>
2021-04-01 10:41:35 -05:00
Khosrow Moossavi
8d9e00b699
ci: overall enhancements and cosmetics improvements (#134)
* ci: cosmetic renaming CI jobs

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

* chore: overrall Makefile enhancements

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-03-31 12:41:24 -04:00
Derek Smith
b02996e027
chore: add make release target (#130)
Signed-off-by: Derek Smith <derek@clokwork.net>
2021-03-30 12:53:27 -05:00
Derek Smith
2f5b47b0f7 chore: update changelog for v0.14.0 2021-03-28 22:21:56 -05:00
Trent Albright
4f3fdc4dae
feat: add sprig template functions support (#131)
* cherry-pick from delmendo

* add tests, docs, and lift hermetic restriction

* remove duplicate funcs that are now provided by sprig

* switch func load order to allow built-ins precedence

* Update chglog.go

Co-authored-by: Dirk Elmendorf <dirk@r26d.com>
2021-03-28 22:18:36 -05:00
Sander Blue
e523fd471a
feat: add --sort [TYPE] flag (#78)
* feat(chglog): add --sort flag

* chore(sort): update README with --sort usage
2021-03-28 22:17:21 -05:00
Khosrow Moossavi
34b9d5c997
ci: deprecate AppVoyer integration (#128)
With the migration to GitHub Action, there's no need to continue to use
AppVoyer to only test on Windows, as it's covered by corresponding new
jobs.

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-03-25 22:48:53 -05:00
Derek Smith
b44eb4e011
chore(CHANGELOG): regenerate CHANGELOG with type-scope and KAC template (#129) 2021-03-24 16:59:08 -05:00
Derek Smith
4d8b2b6be7 chore: update changelog for v0.13.0 2021-03-23 14:14:31 -05:00
Derek Smith
3113e42524
chore: use ldflags to pass version to build process (#127) 2021-03-23 14:11:35 -05:00
Mason J. Katz
9a0d584745
feat: add support for rendering .Body after .Subject as part of list (#121)
When attempting to render a commit body below the summary line of the
commit there are two problems:

1) The text needs to be indented two spaces to appear as part of the
list.

2) Notes (e.g. BREAKING CHANGE) are included in the body and end up
being repeating in a Notes section (if this is part of your template).

To address #1 add an `indent` func to the template parsing.
To address #2 add a `TrimmedBody` to the `Commit` fields.

The `TrimmedBody` will include everything in `Body` but not any
`Ref`s, `Note`s, `Mention`s, `CoAuthors`, or `Signers`.

Both the CoAuthors and Signers are now first class in the Commit
struct.

With both of these a template block like:

```
{{ if .TrimmedBody -}}
{{ indent .TrimmedBody 2 }}
{{ end -}}
```

Will render the trimmed down body section as intended.

See TestGeneratorWithTimmedBody for example of desired output.
2021-03-22 16:04:57 -05:00
Derek Smith
2caa67cc76 chore: update changelog for v0.12.0 2021-03-20 22:20:14 -05:00
Derek Smith
9926e07971 chore: bumps version to v0.12.0 2021-03-20 21:57:06 -05:00
Louis DeLosSantos
ebff3d0beb
feat: allow tag sorting by semver (#124)
Relates to #123.

While this does not introduce "per-branch" tag parsing it does allow an
alternative tag sorting method which maybe a better solution.

With this commit the user can decide to sort the tags by semver instead
of dates.

This is useful where repositories are utilizing a  stable branch model
and back-ports are interleaved with new releases.

For example, if your mainline is on v3.0.0 with it's last release
1/1/2021 and a back-port release of v2.0.1 is released on 1/2/2021,
sorting by semver will correctly order the change log producing
v2.0.1 -> v2.0.1 -> v3.0.0

This functionality is completely opt-in and defaults to the original
"date" sorting

Signed-off-by: ldelossa <louis.delos@gmail.com>
2021-03-20 17:21:47 -05:00
Khosrow Moossavi
9a1a9a525c
chore(docs):cleanup Markdown lint issues and line breaks (#122)
* chore(docs): Fix markdown lint issues
* chore(docs): Adhere to semantic line breaks
2021-03-18 08:35:57 +01:00
Derek Smith
ae3382b7c8
chore(ci): add golangci-lint action and apply linting changes (#120)
BREAKING CHANGE: `JiraIssueId` has been renamed to `JiraIssueID`. This impacts the value for `pattern_maps` in `config.yml`.

* chore(ci): add golangci-lint action

* chore(lint): address errcheck lint failures

* chore(lint): address misspell lint failures

* chore(lint): address gocritic lint failures

* chore(lint): address golint lint failures

* chore(lint): address structcheck lint failures

* chore(lint): address gosimple lint failures

* chore(lint): address gofmt lint failures

* chore(ci): port to official golangci-lint github action

* Update golangci configuration for better coverage

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

* fix: file is not goimports-ed

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

* fix: golint and exported functions comments

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

* chore(lint): address gosec G304 warning

* chore(lint): address uparam warnings

* chore(lint): address scopelint lint failures

* fix: cyclomatic complexity

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

* chore(lint): address prealloc warning, noting that we are warning for now

* chore(lint): address govet and errorlint failures

* chore: clean up defer logic when checking errors

Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-03-16 21:24:36 -05:00
Manuel Vogel
2c3d3f400e
chore: bump golang to 1.16 (#118)
* chore: support goarch 386
* docs(readme): add golang version hint in development section
2021-03-14 21:21:30 +01:00
Derek Smith
c3ee560429 chore: update changelog for v0.11.2 2021-03-13 21:57:11 -06:00
Derek Smith
500a5db7e9 chore: bumps version to v0.11.2 2021-03-13 21:56:04 -06:00
Prasad Tengse
a7ea397268
fix: --template and --repository-url flags not being used (#119)
Co-authored-by: Prasad Tengse <tprasadtp@users.noreply.github.com>
2021-03-13 21:54:40 -06:00
Derek Smith
54bb7363dc chore: update readme and changelog for v0.11.1 2021-03-12 15:12:16 -06:00
Derek Smith
e6e7a69a7d chore: bumps version to v0.11.1 2021-03-12 14:59:47 -06:00
Derek Smith
aa2732d6a2
fix(short flags): correctly define cli flags with shorthands (#117) 2021-03-12 14:56:24 -06:00
Derek Smith
b70aef4adb chore: update changelog for v0.11.0 2021-03-12 10:56:26 -06:00
Derek Smith
0cc1984e29 chore: bumps version to v0.11.0 2021-03-12 10:43:13 -06:00
renovate[bot]
703cfdefff
fix(deps): update all non-major dependencies (#115)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-12 10:27:27 -06:00
Mikael Fridh
9d62af2943
feat(flag): --path filtering - refs (#62). Closes #35
* Argument: --path filtering - refs #35
* Minor documentation additions for Paths option
2021-03-12 13:57:00 +01:00
Chao Li
a1c84d7a0d
feat: add Jira integration (#52) 2021-03-11 08:40:32 +01:00
Derek Smith
8713d96856
fix(init): support OptionAnswer form in survey/v2 (#113) 2021-03-09 10:21:47 +01:00
Derek Smith
efa1c30c0a
fix(deps): update module gopkg.in/kyokomi/emoji.v1 to github.com/kyokomi/emoji/v2 (#109) 2021-03-05 11:54:38 -06:00
Derek Smith
43006610a1
fix(deps): update module github.com/urfave/cli to v2 (#107)
* Migration guide https://github.com/urfave/cli/blob/master/docs/migrate-v1-to-v2.md
2021-03-04 17:18:00 -06:00
renovate[bot]
8195e12833
fix(deps): update module github.com/stretchr/testify to v1.7.0 (#103)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-04 15:32:24 -06:00
Derek Smith
289163a1e2
fix(deps): update module gopkg.in/alecaivazis/survey.v1 to github.com/AlecAivazis/survey/v2 (#108) 2021-03-04 13:59:32 -06:00
Derek Smith
bd958e70ed
chore(deps): add initial renovatebot configuration (#102) 2021-03-02 18:43:55 -06:00
Manuel Vogel
73994ac8f4
Revert "Revert "ci: switches to personal GH Token for brew cross repo releases""
This reverts commit 6e1fc86e33.
2021-01-16 08:05:18 +01:00
Manuel Vogel
6e1fc86e33
Revert "ci: switches to personal GH Token for brew cross repo releases"
This reverts commit cbf3fda1f5.
2021-01-16 08:02:21 +01:00
Manuel Vogel
cb93c2e6e0
chore: update changelog for v0.10.0 2021-01-16 08:01:20 +01:00
Manuel Vogel
17b1252dd5
fix: ignore only git-chglog binary in root and not subfolder 2021-01-16 07:46:27 +01:00
Manuel Vogel
5d98a27559
chore: bumps version to v0.10.0 2021-01-16 07:46:04 +01:00
Manuel Vogel
0ba87caa43
build: fix makfile build target path 2021-01-16 07:40:51 +01:00
Manuel Vogel
771b567c44
chore: sorts changelog desc and excludes Merge commits 2021-01-16 07:20:10 +01:00
Manuel Vogel
cbf3fda1f5
ci: switches to personal GH Token for brew cross repo releases 2021-01-16 07:04:55 +01:00
Manuel Vogel
49ea2f24a9
docs(readme): replaces travis with gh actions badge 2021-01-16 06:53:11 +01:00