Commit graph

218 commits

Author SHA1 Message Date
renovate[bot]
4f3ff62db6
chore(deps): update all non-major dependencies (#220)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-22 12:01:00 +01:00
renovate[bot]
5896ad91ce
fix(deps): update module gopkg.in/yaml.v2 to v3 (#221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-22 11:59:09 +01:00
Orpheus Lummis
cbab5b89dc
chore: update Go install instructions (#205) 2023-01-22 11:57:59 +01:00
Benjamin K
66a1d9ea5a
fix: typo in readme (#196) 2023-01-22 11:57:26 +01:00
Manuel Vogel
d1dc1da744
chore: bump golang to 1.19 (#218)
* chore: bump golang to 1.19

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix: [#212] Vulnerabilities. (#219)

Co-authored-by: Manuel Vogel <mavogel@posteo.de>

* chore: bump all dependencies

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* chore(deps): update actions/setup-go action to v3 (#202)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update actions/checkout action to v3 (#201)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update golangci/golangci-lint-action action to v3 (#203)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(ci): add explicit go setup before linting

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* chore(ci): bump golangci to v1.50.1

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* chore: go fmt

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* chore: ignore staticcheck for strings.Title

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* chore: reaplce all ioutil with os funcs

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* chore ignore file read sec check

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix: remove unnecessary if before trimPrefix

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

Signed-off-by: Manuel Vogel <mavogel@posteo.de>
Co-authored-by: Ben van B <030@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2023-01-22 11:56:18 +01:00
Manuel Vogel
03f0a44924
chore: update changelog for v0.15.1 2021-12-14 13:25:51 +01:00
Manuel Vogel
9558380243
chore: ignore .vscode 2021-12-14 13:23:54 +01:00
renovate[bot]
3d8006051f
fix(deps): update all non-major dependencies (#179)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-14 13:20:53 +01:00
Jameson Stone
2861505ecb
ci(workflows): 🔧 remove manual if contains skip in workflows (#164) 2021-12-14 13:20:18 +01:00
renovate[bot]
899c1ede45
chore(deps): update all non-major dependencies docker tags (#168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 12:24:56 +02:00
renovate[bot]
93707ab667
fix(deps): update module github.com/andygrunwald/go-jira to v1.14.0 (#167)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 15:56:31 +02:00
renovate[bot]
7a3896821b
fix(deps): update module github.com/alecaivazis/survey/v2 to v2.2.16 (#165)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 11:34:53 +02:00
renovate[bot]
0022ecf864
fix(deps): update module github.com/alecaivazis/survey/v2 to v2.2.15 (#163)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 10:13:47 +02:00
Manuel Vogel
82ead28bee
chore: update changelog for v0.15.0 2021-07-09 09:31:50 +02:00
Thierno IB. BARRY
21b98bd56f
feat: Automatic link for gitlab merge requests (#160) 2021-07-09 09:26:33 +02:00
renovate[bot]
45e01f0f7f
fix(deps): update module github.com/alecaivazis/survey/v2 to v2.2.14 (#158)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-05 10:18:56 +02:00
renovate[bot]
6a18b6ef90
fix(deps): update module github.com/alecaivazis/survey/v2 to v2.2.13 (#156)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-29 08:24:33 +02:00
renovate[bot]
b38b5032cf
chore(deps): update alpine docker tag to v3.14.0 (#153) 2021-06-17 07:05:15 -05:00
renovate[bot]
9842899ea1
fix(deps): update module github.com/fatih/color to v1.12.0 (#150)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-25 09:05:09 +02:00
renovate[bot]
ac01b30c39
fix(deps): update module github.com/fatih/color to v1.11.0 (#149)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-14 09:19:18 +02:00
renovate[bot]
cefdc53e29
fix(deps): update module github.com/alecaivazis/survey/v2 to v2.2.12 (#147)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-30 14:03:34 +02:00
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