feat: skip good first issue (#2298)
This commit is contained in:
5
.github/workflows/close-inactive-issues.yml
vendored
5
.github/workflows/close-inactive-issues.yml
vendored
@@ -54,6 +54,11 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const issue of issues.data) {
|
for (const issue of issues.data) {
|
||||||
|
// Skip if the issue has 'good first issue' label
|
||||||
|
if (issue.labels.some(label => label.name === 'good first issue')) {
|
||||||
|
console.log(`Skipping issue #${issue.number} as it's marked as 'good first issue'`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (new Date(issue.updated_at) < sixtyDaysAgo) {
|
if (new Date(issue.updated_at) < sixtyDaysAgo) {
|
||||||
try {
|
try {
|
||||||
await github.rest.issues.update({
|
await github.rest.issues.update({
|
||||||
|
|||||||
Reference in New Issue
Block a user