- 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
Generated Vendored
+1 -1
View File
@@ -2707,7 +2707,7 @@ function buildChangelog(diffInfo, origPrs, options) {
const contributorsSet = 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(changelogStrings, contributorsString, externalContributorString, prStrings, diffInfo, options);
let renderedReleaseNotesTemplate = renderTemplateAndFillPlaceholderContext(config.template, releaseNotesTemplateContext, groupedPlaceholders, customPlaceholdersTemplateContext, config);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long