David Alpert
8ec17f63b0
feat: expose JiraIssue.BaseURL and JiraIssue.BrowseURL
...
allows the release note templates to easily create hyperlinks
into jira like
Jira: {{ print .JiraIssue.BaseURL "/browse/" .JiraIssueID }}
or
Jira: {{ .JiraIssue.BrowseURL }}
resolves : #251
2023-11-21 11:46:46 -06: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
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
Chao Li
a1c84d7a0d
feat: add Jira integration ( #52 )
2021-03-11 08:40:32 +01:00
tsuyoshiwada
7a71844c6f
fix: Remove accidentally added Unreleased.Tag
2018-05-05 17:58:41 +09:00
tsuyoshiwada
5ce1760d0f
feat: Add Unreleased field to RenderData
2018-05-03 16:57:36 +09:00
tsuyoshiwada
114b7d6fc8
feat: Supports annotated git-tag and adds Tag.Subject field #3
2018-02-25 15:57:15 +09:00
tsuyoshiwada
d55318c7a0
docs: Add godoc
2018-02-18 01:54:44 +09:00
tsuyoshiwada
8869631aad
fix: Fix parsing of revert and body
2018-02-17 02:27:05 +09:00
tsuyoshiwada
d4d2a7ed80
feat: Add Next and Previous in Tag
2018-02-16 15:50:05 +09:00
tsuyoshiwada
fd369d4c53
feat: Add MergeCommits and RevertCommits
2018-02-10 22:22:24 +09:00
tsuyoshiwada
6caf676beb
feat: First implement
2018-02-10 18:11:50 +09:00