Add new 'include-only-assigned' option
If set, only issues containing assignees will be processed
This commit is contained in:
parent
c750aa3ff8
commit
c9c0453c5e
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -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) {
|
||||||
|
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user