mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Update close_issues.yml (#629)
Signed-off-by: Richard Guo <richardg7890@gmail.com>
This commit is contained in:
parent
d1e65e8d1c
commit
546600fb68
4
.github/workflows/close_issues.yml
vendored
4
.github/workflows/close_issues.yml
vendored
@ -19,8 +19,8 @@ jobs:
|
|||||||
for (let { number } of issues.data) {
|
for (let { number } of issues.data) {
|
||||||
const issueData = await github.issues.get({...repo, issue_number: number});
|
const issueData = await github.issues.get({...repo, issue_number: number});
|
||||||
const comments = await github.issues.listComments({...repo, issue_number: number});
|
const comments = await github.issues.listComments({...repo, issue_number: number});
|
||||||
if (issueData.data.labels.length === 0 && comments.data.length < 1) {
|
if (issueData.data.labels.length === 0 && comments.data.length <= 1) {
|
||||||
await github.issues.update({...repo, issue_number: number, state: 'closed'});
|
await github.issues.update({...repo, issue_number: number, state: 'closed'});
|
||||||
await github.issues.createComment({...repo, issue_number: number, body: 'Issue closed as it does not have any labels or comments.'});
|
await github.issues.createComment({...repo, issue_number: number, body: 'Issue closed as it does not have any labels or comments.'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user