From 79aa3db4569ad2ca1327444ef71cd671b740d71d Mon Sep 17 00:00:00 2001 From: nickschot Date: Fri, 3 May 2024 15:45:10 +0200 Subject: [PATCH] Apply ignoreCommitters config to PR creators --- src/changelog.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/changelog.ts b/src/changelog.ts index 162ad04..45ad416 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -203,7 +203,10 @@ export default class Changelog { releaseMap[currentTag] = { name: currentTag, date, commits: [] }; } - releaseMap[currentTag].commits.push(commit); + let prUserLogin = commit.githubIssue?.user.login; + if (prUserLogin && !this.ignoreCommitter(prUserLogin)) { + releaseMap[currentTag].commits.push(commit); + } } }