Fixed should be stale condition (#304)

* Fixed should be stale condition

When different stale period is used for issues and pull requests, this code uses wrong one.

This was probably missed in https://github.com/actions/stale/pull/224

Fixes #299

* Add tests for #299

Co-authored-by: Geoffrey Testelin <geoffrey.testelin@gmail.com>
This commit is contained in:
Michal Čihař
2021-02-05 12:52:44 +01:00
committed by GitHub
parent 079c368275
commit 7164109781
2 changed files with 199 additions and 1 deletions

View File

@@ -273,7 +273,7 @@ export class IssueProcessor {
// should this issue be marked stale?
const shouldBeStale = !IssueProcessor._updatedSince(
issue.updated_at,
this.options.daysBeforeStale
daysBeforeStale
);
// determine if this issue needs to be marked stale first