Compare commits

..

4 Commits

Author SHA1 Message Date
JoannaaKL
99b6c70959 Add include-only-assigned to the action.yml (#824) 2022-09-12 17:39:44 +02:00
Luke Tomlinson
8e8a0e6680 [Bugfix-795] Fix date comparison edge case (#816)
* Fix updatedAt and markedStaleOn date comparison

* Delete accidental file

* Refactor

* Cleanup

* cleanup
2022-09-12 09:38:46 -04:00
JoannaaKL
80962c1062 Update README.md (#821)
* Update README.md

* Update README.md

Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>

Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
2022-09-12 14:41:28 +02:00
JoannaaKL
3e4418e47e Issue 596/include only assigned (#817)
* Add new 'include-only-assigned' option

If set, only issues containing assignees will be processed

* Test new flag

* Update code comment

* Update src/classes/issues-processor.ts

Co-authored-by: Francesco Renzi <rentziass@github.com>

* Update index.js with typo fix

Co-authored-by: Francesco Renzi <rentziass@github.com>
2022-09-12 13:20:57 +02: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 it's assignees list is empty`);
issueLogger.info(`Skipping this $$type because its assignees list is empty`);
IssuesProcessor._endIssueProcessing(issue);
return; // If the issue has an 'includeOnlyAssigned' option, process only issues with nonempty assignees list
return; // If the issue has an 'include-only-assigned' option set, 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 it's assignees list is empty`
`Skipping this $$type because its assignees list is empty`
);
IssuesProcessor._endIssueProcessing(issue);
return; // If the issue has an 'include-only-assigned' option, process only issues with nonempty assignees list
return; // If the issue has an 'include-only-assigned' option set, process only issues with nonempty assignees list
}
const onlyLabels: string[] = wordsToList(this._getOnlyLabels(issue));