mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-07-18 17:04:24 +00:00
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
This commit is contained in:
parent
2a7ca9ecb0
commit
8ec17f63b0
4 changed files with 10 additions and 0 deletions
|
|
@ -461,6 +461,8 @@ func (p *commitParser) processJiraIssue(commit *Commit, issueID string) {
|
|||
}
|
||||
commit.JiraIssue = &JiraIssue{
|
||||
Type: issue.Fields.Type.Name,
|
||||
BaseURL: p.config.Options.JiraURL,
|
||||
BrowseURL: fmt.Sprintf("%s/browse/%s", strings.TrimRight(p.config.Options.JiraURL, "/"), issueID),
|
||||
Summary: issue.Fields.Summary,
|
||||
Description: issue.Fields.Description,
|
||||
Labels: issue.Fields.Labels,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue