- adjust external contributor logic to filter out repo owner

This commit is contained in:
Mike Penz
2024-11-02 10:48:43 +01:00
parent ac686fc38f
commit a7d84578bd
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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(