Skip to content

Commit

Permalink
chore: lint-fix
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <[email protected]>
  • Loading branch information
kzantow committed Jan 24, 2023
1 parent 89889ed commit 6ec6c68
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions chronicle/release/releasers/github/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,22 +312,22 @@ func createChangesFromIssues(config Config, allMergedPRs []ghPullRequest, issues
},
}

if config.IncludeIssuePRs || config.IncludeIssuePRAuthors {
for _, pr := range getLinkedPRs(allMergedPRs, issue) {
if config.IncludeIssuePRs {
references = append(references, change.Reference{
Text: fmt.Sprintf("PR #%d", pr.Number),
URL: pr.URL,
})
}
if config.IncludeIssuePRAuthors {
references = append(references, change.Reference{
Text: pr.Author,
URL: fmt.Sprintf("https://%s/%s", config.Host, pr.Author),
})
if config.IncludeIssuePRs || config.IncludeIssuePRAuthors {
for _, pr := range getLinkedPRs(allMergedPRs, issue) {
if config.IncludeIssuePRs {
references = append(references, change.Reference{
Text: fmt.Sprintf("PR #%d", pr.Number),
URL: pr.URL,
})
}
if config.IncludeIssuePRAuthors {
references = append(references, change.Reference{
Text: pr.Author,
URL: fmt.Sprintf("https://%s/%s", config.Host, pr.Author),
})
}
}
}
}

changes = append(changes, change.Change{
Text: issue.Title,
Expand Down

0 comments on commit 6ec6c68

Please sign in to comment.