From 69135aa3b7c7090824a63cdc2bc0b5e5a2fcb15f Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Wed, 28 May 2025 23:35:53 +0200 Subject: [PATCH 1/3] allow PRs from ignored committer if it has been labeled --- src/changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changelog.ts b/src/changelog.ts index b24d1f1..57f160a 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -215,7 +215,7 @@ export default class Changelog { } let prUserLogin = commit.githubIssue?.user.login; - if (prUserLogin && !this.ignoreCommitter(prUserLogin)) { + if (prUserLogin && (!this.ignoreCommitter(prUserLogin) || !commit.githubIssue.labels.includes(this.config.wildcardLabel))) { releaseMap[currentTag].commits.push(commit); } } From 5fca426ad7706f5e7a6841215c15cebf61003ed8 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Mon, 6 Oct 2025 10:04:59 +0200 Subject: [PATCH 2/3] fix --- src/changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changelog.ts b/src/changelog.ts index 57f160a..5966ae5 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -215,7 +215,7 @@ export default class Changelog { } let prUserLogin = commit.githubIssue?.user.login; - if (prUserLogin && (!this.ignoreCommitter(prUserLogin) || !commit.githubIssue.labels.includes(this.config.wildcardLabel))) { + if (prUserLogin && (!this.ignoreCommitter(prUserLogin) || !commit.githubIssue?.labels.map(l => l.name).includes(this.config.wildcardLabel))) { releaseMap[currentTag].commits.push(commit); } } From 94c75621965c1b8397ec82cb82cb4ec491644d17 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Mon, 6 Oct 2025 10:09:43 +0200 Subject: [PATCH 3/3] fix --- src/changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changelog.ts b/src/changelog.ts index 8fdc96d..3ab129f 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -204,7 +204,7 @@ export default class Changelog { } let prUserLogin = commit.githubIssue?.user.login; - let hasCustomLabel = commit.githubIssue && !commit.githubIssue.labels.map(l => l.name).includes(this.config.wildcardLabel)); + let hasCustomLabel = commit.githubIssue && !commit.githubIssue.labels.map(l => l.name).includes(this.config.wildcardLabel); if (prUserLogin && !this.ignoreCommitter(prUserLogin) || hasCustomLabel) { releaseMap[currentTag].commits.push(commit); }