Compare commits

..

9 Commits

Author SHA1 Message Date
JoannaaKL
543406b451 Add new option to actions.yml 2022-09-12 15:13:07 +00:00
JoannaaKL
c9c0453c5e Add new 'include-only-assigned' option
If set, only issues containing assignees will be processed
2022-09-12 15:13:07 +00:00
Luke Tomlinson
c750aa3ff8 [Bugfix-795] Fix date comparison edge case (#816)
* Fix updatedAt and markedStaleOn date comparison

* Delete accidental file

* Refactor

* Cleanup

* cleanup
2022-09-12 15:13:07 +00:00
JoannaaKL
e200968421 Add 'include-only-assigned' option to the README 2022-09-12 12:10:27 +00:00
JoannaaKL
8d5a27d5ec Update index.js with typo fix 2022-09-12 11:17:34 +00:00
JoannaaKL
867763412b Update src/classes/issues-processor.ts
Co-authored-by: Francesco Renzi <rentziass@github.com>
2022-09-12 13:11:53 +02:00
JoannaaKL
13f3458051 Update code comment 2022-09-12 10:01:36 +00:00
JoannaaKL
e878daaea6 Test new flag 2022-09-12 09:44:00 +00:00
JoannaaKL
a1c9a63a3d Add new 'include-only-assigned' option
If set, only issues containing assignees will be processed
2022-09-12 09:42:43 +00:00
3 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ Every argument is optional.
| [ignore-updates](#ignore-updates) | Any update (update/comment) can reset the stale idle time on the issues/PRs | `false` |
| [ignore-issue-updates](#ignore-issue-updates) | Override [ignore-updates](#ignore-updates) for issues only | |
| [ignore-pr-updates](#ignore-pr-updates) | Override [ignore-updates](#ignore-updates) for PRs only | |
| [include-only-assigned](#include-only-assigned) | Process only assigned issues | `false` |
| [include-only-assigned](#include-only-assigned) | Process only assigned issues | `false` |
### List of output options

4
dist/index.js vendored
View File

@@ -477,9 +477,9 @@ class IssuesProcessor {
return; // Don't process locked issues
}
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);
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));
if (onlyLabels.length > 0) {

View File

@@ -223,10 +223,10 @@ export class IssuesProcessor {
if (this._isIncludeOnlyAssigned(issue)) {
issueLogger.info(
`Skipping this $$type because its assignees list is empty`
`Skipping this $$type because it's assignees list is empty`
);
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));