Skip to content

Commit 0ccf5f8

Browse files
committed
github: Temporarily disable close_reviewer_needed automation
Temporarily disable the closing of PRs marked as "reviewer needed". Signed-off-by: Kevin O'Connor <[email protected]>
1 parent fc102ed commit 0ccf5f8

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

.github/workflows/stale-issue-bot.yaml

+48-48
Original file line numberDiff line numberDiff line change
@@ -62,54 +62,54 @@ jobs:
6262
state: 'closed'
6363
});
6464
}
65-
# Close tickets marked with "reviewer needed" label for 2+ weeks
66-
close_reviewer_needed:
67-
if: github.repository == 'Klipper3d/klipper'
68-
runs-on: ubuntu-latest
69-
steps:
70-
- uses: actions/github-script@v6
71-
with:
72-
script: |
73-
const issues = await github.rest.issues.listForRepo({
74-
owner: context.repo.owner,
75-
repo: context.repo.repo,
76-
state: 'open',
77-
labels: 'reviewer needed',
78-
assignee: 'none',
79-
per_page: 100,
80-
page: 1
81-
});
82-
msg = "Unfortunately a reviewer has not assigned themselves to"
83-
+ " this GitHub Pull Request and it is therefore being"
84-
+ " closed. It is a good idea to move"
85-
+ " further discussion to the [Klipper Discourse]"
86-
+ "(https://www.klipper3d.org/Contact.html#discourse-forum)"
87-
+ " server. Reviewers can reach out on that forum to let you"
88-
+ " know if they are interested and when they are available."
89-
+ "\n\n"
90-
+ "Best regards,\n"
91-
+ "~ Your friendly GitIssueBot"
92-
+ "\n\n"
93-
+ "PS: I'm just an automated script, not a human being.";
94-
const expireMillis = 1000 * 60 * 60 * 24 * 14;
95-
const curtime = new Date().getTime();
96-
for (const issue of issues.data.values()) {
97-
const updatetime = new Date(issue.updated_at).getTime();
98-
if (curtime < updatetime + expireMillis)
99-
continue;
100-
await github.rest.issues.createComment({
101-
owner: context.repo.owner,
102-
repo: context.repo.repo,
103-
issue_number: issue.number,
104-
body: msg
105-
});
106-
await github.rest.issues.update({
107-
owner: context.repo.owner,
108-
repo: context.repo.repo,
109-
issue_number: issue.number,
110-
state: 'closed'
111-
});
112-
}
65+
# # Close tickets marked with "reviewer needed" label for 2+ weeks
66+
# close_reviewer_needed:
67+
# if: github.repository == 'Klipper3d/klipper'
68+
# runs-on: ubuntu-latest
69+
# steps:
70+
# - uses: actions/github-script@v6
71+
# with:
72+
# script: |
73+
# const issues = await github.rest.issues.listForRepo({
74+
# owner: context.repo.owner,
75+
# repo: context.repo.repo,
76+
# state: 'open',
77+
# labels: 'reviewer needed',
78+
# assignee: 'none',
79+
# per_page: 100,
80+
# page: 1
81+
# });
82+
# msg = "Unfortunately a reviewer has not assigned themselves to"
83+
# + " this GitHub Pull Request and it is therefore being"
84+
# + " closed. It is a good idea to move"
85+
# + " further discussion to the [Klipper Discourse]"
86+
# + "(https://www.klipper3d.org/Contact.html#discourse-forum)"
87+
# + " server. Reviewers can reach out on that forum to let you"
88+
# + " know if they are interested and when they are available."
89+
# + "\n\n"
90+
# + "Best regards,\n"
91+
# + "~ Your friendly GitIssueBot"
92+
# + "\n\n"
93+
# + "PS: I'm just an automated script, not a human being.";
94+
# const expireMillis = 1000 * 60 * 60 * 24 * 14;
95+
# const curtime = new Date().getTime();
96+
# for (const issue of issues.data.values()) {
97+
# const updatetime = new Date(issue.updated_at).getTime();
98+
# if (curtime < updatetime + expireMillis)
99+
# continue;
100+
# await github.rest.issues.createComment({
101+
# owner: context.repo.owner,
102+
# repo: context.repo.repo,
103+
# issue_number: issue.number,
104+
# body: msg
105+
# });
106+
# await github.rest.issues.update({
107+
# owner: context.repo.owner,
108+
# repo: context.repo.repo,
109+
# issue_number: issue.number,
110+
# state: 'closed'
111+
# });
112+
# }
113113
# Mark unassigned PRs that are idle for 2 weeks
114114
mark_reviewer_needed:
115115
if: github.repository == 'Klipper3d/klipper'

0 commit comments

Comments
 (0)