fix: only-issue-types does not affect PRs (#1338)

* fix:  does not affect PRs

* docs: mention new behaviour specifically in README.md

* test: add new test case to avoid regression

* chore: run build
This commit is contained in:
Felix Schneider
2026-06-30 20:46:44 +02:00
committed by GitHub
parent eb5cf3af3a
commit 9461cb1006
4 changed files with 37 additions and 2 deletions

2
dist/index.js vendored
View File

@@ -513,7 +513,7 @@ class IssuesProcessor {
IssuesProcessor._endIssueProcessing(issue);
return; // If the issue has an 'include-only-assigned' option set, process only issues with nonempty assignees list
}
if (this.options.onlyIssueTypes) {
if (this.options.onlyIssueTypes && !issue.isPullRequest) {
const allowedTypes = this.options.onlyIssueTypes
.split(',')
.map(t => t.trim().toLowerCase())