Skip to content

Commit

Permalink
Merge pull request #1391 from mikepenz/fix/external_contributors
Browse files Browse the repository at this point in the history
Fix Contributor template
  • Loading branch information
mikepenz authored Nov 2, 2024
2 parents ac686fc + a7d8457 commit 6e20bec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configs/configuration_repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"labels": ["dependencies"]
}
],
"template": "${{CHANGELOG}}\n\nContributors:\n${{CONTRIBUTORS}}",
"template": "#{{CHANGELOG}}\n\nContributors:\n- #{{CONTRIBUTORS}}",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000
}
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export function buildChangelog(diffInfo: DiffInfo, origPrs: PullRequestInfo[], o
const contributorsSet: Set<string> = new Set(prs.map(pr => `@${pr.author}`))
const contributorsArray = Array.from(contributorsSet)
const contributorsString = contributorsArray.join(', ')
const externalContributorString = contributorsArray.filter(value => value !== options.owner).join(', ')
const externalContributorString = contributorsArray.filter(value => value !== `@${options.owner}`).join(', ')
core.setOutput('contributors', JSON.stringify(contributorsSet))

const releaseNotesTemplateContext = buildReleaseNotesTemplateContext(
Expand Down

0 comments on commit 6e20bec

Please sign in to comment.