From 7368ddf7fac405d81fda4b669f197cae46a192b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 4 Feb 2021 10:29:14 +0100 Subject: [PATCH] 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 --- src/IssueProcessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IssueProcessor.ts b/src/IssueProcessor.ts index f1c2d93db..f74260db7 100644 --- a/src/IssueProcessor.ts +++ b/src/IssueProcessor.ts @@ -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