Skip to content

Commit 0f444ab

Browse files
authored
Fully enable the stale PR workflow (#13656)
Changed lines 96-101, 107-112, and 115-120 which update the PRs based on stale condition
1 parent f02fab4 commit 0f444ab

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/stale.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,31 +93,31 @@ jobs:
9393
if (labels.includes("Stale")) {
9494
core.info(`[${pull.number}] Closing PR.`);
9595
numAPIRequests += 1;
96-
//await github.rest.issues.update({
97-
//owner: "pytorch",
98-
//repo: "executorch",
99-
//issue_number: pull.number,
100-
//state: "closed",
101-
//});
96+
await github.rest.issues.update({
97+
owner: "pytorch",
98+
repo: "executorch",
99+
issue_number: pull.number,
100+
state: "closed",
101+
});
102102
} else {
103103
// For PRs not labeled stale, label them stale.
104104
core.info(`[${pull.number}] Labeling PR as stale.`);
105105
106106
numAPIRequests += 1;
107-
//await github.rest.issues.createComment({
108-
//owner: "pytorch",
109-
//repo: "executorch",
110-
//issue_number: pull.number,
111-
//body: STALE_MESSAGE,
112-
//});
107+
await github.rest.issues.createComment({
108+
owner: "pytorch",
109+
repo: "executorch",
110+
issue_number: pull.number,
111+
body: STALE_MESSAGE,
112+
});
113113
114114
numAPIRequests += 1;
115-
//await github.rest.issues.addLabels({
116-
//owner: "pytorch",
117-
//repo: "executorch",
118-
//issue_number: pull.number,
119-
//labels: ["Stale"],
120-
//});
115+
await github.rest.issues.addLabels({
116+
owner: "pytorch",
117+
repo: "executorch",
118+
issue_number: pull.number,
119+
labels: ["Stale"],
120+
});
121121
}
122122
}
123123

0 commit comments

Comments
 (0)