From f89bfc679b44790a69f0ea3b492b61b0bec09b01 Mon Sep 17 00:00:00 2001
From: sekyondaMeta <127536312+sekyondaMeta@users.noreply.github.com>
Date: Wed, 23 Oct 2024 12:22:48 -0400
Subject: [PATCH] Update StalePRs.yml
Updating `Stale` to `stale` to account for case sensitivity.
It looks like case sensitivity in labels might affect results gotten when a GH runs
---
.github/workflows/StalePRs.yml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/StalePRs.yml b/.github/workflows/StalePRs.yml
index 4a8ddd6865..4fbfc78550 100644
--- a/.github/workflows/StalePRs.yml
+++ b/.github/workflows/StalePRs.yml
@@ -57,11 +57,11 @@ jobs:
const STALE_CLOSE_THRESHOLD_MS = 1000 * 60 * 60 * 24 * 30;
const STALE_MESSAGE =
- "Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as `Stale`.
" +
- "Feel free to remove the `Stale` label if you feel this was a mistake.
" +
- "If you are unable to remove the `Stale` label please contact a maintainer in order to do so.
" +
+ "Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as `stale`.
" +
+ "Feel free to remove the `stale` label if you feel this was a mistake.
" +
+ "If you are unable to remove the `stale` label please contact a maintainer in order to do so.
" +
"If you want the bot to never mark this PR stale again, add the `no-stale` label.
" +
- "`Stale` pull requests will automatically be closed after 30 days of inactivity.
";
+ "`stale` pull requests will automatically be closed after 30 days of inactivity.
";
let numAPIRequests = 0;
let numProcessed = 0;
@@ -79,7 +79,7 @@ jobs:
// Check if the PR is stale, according to our configured thresholds.
let staleThresholdMillis;
- if (labels.includes("Stale")) {
+ if (labels.includes("stale")) {
core.info(`[${pull.number}] PR is labeled stale, checking whether we should close it.`);
staleThresholdMillis = STALE_CLOSE_THRESHOLD_MS;
} else {
@@ -97,7 +97,7 @@ jobs:
// At this point, we know we should do something.
// For PRs already labeled stale, close them.
- if (labels.includes("Stale")) {
+ if (labels.includes("stale")) {
core.info(`[${pull.number}] Closing PR.`);
numAPIRequests += 1;
await github.rest.issues.update({
@@ -123,7 +123,7 @@ jobs:
owner: "pytorch",
repo: "tutorials",
issue_number: pull.number,
- labels: ["Stale"],
+ labels: ["stale"],
});
}
}