Skip to content

Commit

Permalink
- adjust external contributor logic to filter out repo owner
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Nov 2, 2024
1 parent ac686fc commit a7d8457
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 a7d8457

Please sign in to comment.