aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-12-05 17:55:11 -0500
committerKevin O'Connor <kevin@koconnor.net>2023-12-05 17:57:11 -0500
commit0ccf5f8e479a9801b065034e07d974e694918772 (patch)
tree0040e3ea3b12214e5efec7716df12b352faced8f
parentfc102edc242a7c5e9b8c6415f447bf1a6a022ea7 (diff)
downloadkutter-0ccf5f8e479a9801b065034e07d974e694918772.tar.gz
kutter-0ccf5f8e479a9801b065034e07d974e694918772.tar.xz
kutter-0ccf5f8e479a9801b065034e07d974e694918772.zip
github: Temporarily disable close_reviewer_needed automation
Temporarily disable the closing of PRs marked as "reviewer needed". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--.github/workflows/stale-issue-bot.yaml96
1 files changed, 48 insertions, 48 deletions
diff --git a/.github/workflows/stale-issue-bot.yaml b/.github/workflows/stale-issue-bot.yaml
index 2f05abc1..b2351161 100644
--- a/.github/workflows/stale-issue-bot.yaml
+++ b/.github/workflows/stale-issue-bot.yaml
@@ -62,54 +62,54 @@ jobs:
state: 'closed'
});
}
- # Close tickets marked with "reviewer needed" label for 2+ weeks
- close_reviewer_needed:
- if: github.repository == 'Klipper3d/klipper'
- runs-on: ubuntu-latest
- steps:
- - uses: actions/github-script@v6
- with:
- script: |
- const issues = await github.rest.issues.listForRepo({
- owner: context.repo.owner,
- repo: context.repo.repo,
- state: 'open',
- labels: 'reviewer needed',
- assignee: 'none',
- per_page: 100,
- page: 1
- });
- msg = "Unfortunately a reviewer has not assigned themselves to"
- + " this GitHub Pull Request and it is therefore being"
- + " closed. It is a good idea to move"
- + " further discussion to the [Klipper Discourse]"
- + "(https://www.klipper3d.org/Contact.html#discourse-forum)"
- + " server. Reviewers can reach out on that forum to let you"
- + " know if they are interested and when they are available."
- + "\n\n"
- + "Best regards,\n"
- + "~ Your friendly GitIssueBot"
- + "\n\n"
- + "PS: I'm just an automated script, not a human being.";
- const expireMillis = 1000 * 60 * 60 * 24 * 14;
- const curtime = new Date().getTime();
- for (const issue of issues.data.values()) {
- const updatetime = new Date(issue.updated_at).getTime();
- if (curtime < updatetime + expireMillis)
- continue;
- await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: issue.number,
- body: msg
- });
- await github.rest.issues.update({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: issue.number,
- state: 'closed'
- });
- }
+# # Close tickets marked with "reviewer needed" label for 2+ weeks
+# close_reviewer_needed:
+# if: github.repository == 'Klipper3d/klipper'
+# runs-on: ubuntu-latest
+# steps:
+# - uses: actions/github-script@v6
+# with:
+# script: |
+# const issues = await github.rest.issues.listForRepo({
+# owner: context.repo.owner,
+# repo: context.repo.repo,
+# state: 'open',
+# labels: 'reviewer needed',
+# assignee: 'none',
+# per_page: 100,
+# page: 1
+# });
+# msg = "Unfortunately a reviewer has not assigned themselves to"
+# + " this GitHub Pull Request and it is therefore being"
+# + " closed. It is a good idea to move"
+# + " further discussion to the [Klipper Discourse]"
+# + "(https://www.klipper3d.org/Contact.html#discourse-forum)"
+# + " server. Reviewers can reach out on that forum to let you"
+# + " know if they are interested and when they are available."
+# + "\n\n"
+# + "Best regards,\n"
+# + "~ Your friendly GitIssueBot"
+# + "\n\n"
+# + "PS: I'm just an automated script, not a human being.";
+# const expireMillis = 1000 * 60 * 60 * 24 * 14;
+# const curtime = new Date().getTime();
+# for (const issue of issues.data.values()) {
+# const updatetime = new Date(issue.updated_at).getTime();
+# if (curtime < updatetime + expireMillis)
+# continue;
+# await github.rest.issues.createComment({
+# owner: context.repo.owner,
+# repo: context.repo.repo,
+# issue_number: issue.number,
+# body: msg
+# });
+# await github.rest.issues.update({
+# owner: context.repo.owner,
+# repo: context.repo.repo,
+# issue_number: issue.number,
+# state: 'closed'
+# });
+# }
# Mark unassigned PRs that are idle for 2 weeks
mark_reviewer_needed:
if: github.repository == 'Klipper3d/klipper'