Add new 'include-only-assigned' option

If set, only issues containing assignees will be processed
This commit is contained in:
JoannaaKL 2022-09-12 09:42:43 +00:00
parent c750aa3ff8
commit c9c0453c5e
2 changed files with 1301 additions and 1301 deletions

2598
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -223,10 +223,10 @@ export class IssuesProcessor {
if (this._isIncludeOnlyAssigned(issue)) { if (this._isIncludeOnlyAssigned(issue)) {
issueLogger.info( issueLogger.info(
`Skipping this $$type because its assignees list is empty` `Skipping this $$type because it's assignees list is empty`
); );
IssuesProcessor._endIssueProcessing(issue); IssuesProcessor._endIssueProcessing(issue);
return; // If the issue has an 'include-only-assigned' option set, process only issues with nonempty assignees list return; // If the issue has an 'include-only-assigned' option, process only issues with nonempty assignees list
} }
const onlyLabels: string[] = wordsToList(this._getOnlyLabels(issue)); const onlyLabels: string[] = wordsToList(this._getOnlyLabels(issue));