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

4
dist/index.js vendored
View File

@ -477,9 +477,9 @@ class IssuesProcessor {
return; // Don't process locked issues return; // Don't process locked issues
} }
if (this._isIncludeOnlyAssigned(issue)) { if (this._isIncludeOnlyAssigned(issue)) {
issueLogger.info(`Skipping this $$type because its assignees list is empty`); issueLogger.info(`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 'includeOnlyAssigned' option, process only issues with nonempty assignees list
} }
const onlyLabels = words_to_list_1.wordsToList(this._getOnlyLabels(issue)); const onlyLabels = words_to_list_1.wordsToList(this._getOnlyLabels(issue));
if (onlyLabels.length > 0) { if (onlyLabels.length > 0) {

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));