Skip to content

Commit 9bea956

Browse files
authored
Commented update blocks to check if workflow works expectedly
1 parent e384cbe commit 9bea956

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/stale

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,30 +93,30 @@ 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",
96+
//await github.rest.issues.update({
97+
//owner: "pytorch",
98+
//repo: "executorch",
99+
//issue_number: pull.number,
100+
//state: "closed",
101101
});
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,
107+
//await github.rest.issues.createComment({
108+
//owner: "pytorch",
109+
//repo: "executorch",
110+
//issue_number: pull.number,
111+
//body: STALE_MESSAGE,
112112
});
113113

114114
numAPIRequests += 1;
115-
await github.rest.issues.addLabels({
116-
owner: "pytorch",
117-
repo: "executorch",
118-
issue_number: pull.number,
119-
labels: ["Stale"],
115+
//await github.rest.issues.addLabels({
116+
//owner: "pytorch",
117+
//repo: "executorch",
118+
//issue_number: pull.number,
119+
//labels: ["Stale"],
120120
});
121121
}
122122
}

0 commit comments

Comments
 (0)