- adjust external contributor logic to filter out repo owner
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user