@@ -62,54 +62,54 @@ jobs:
62
62
state: 'closed'
63
63
});
64
64
}
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
+ # }
113
113
# Mark unassigned PRs that are idle for 2 weeks
114
114
mark_reviewer_needed :
115
115
if : github.repository == 'Klipper3d/klipper'
0 commit comments