Skip to content

Commit 5eecf97

Browse files
committed
[Auto Merge] chore: set the inactivity from 35 to 30
2 parents b5c33fc + a0eafcb commit 5eecf97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/close-inactive-issues.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
github-token: ${{secrets.GITHUB_TOKEN}}
1919
script: |
20-
const sixtyDaysAgo = new Date(Date.now() - 35 * 24 * 60 * 60 * 1000);
20+
const thirtyDaysAgo = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000);
2121
2222
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
2323
console.log(`Owner: ${owner}, Repo: ${repo}`);
@@ -57,7 +57,7 @@ jobs:
5757
console.log(`Skipping issue #${issue.number} as it's marked as 'good first issue'`);
5858
continue;
5959
}
60-
if (new Date(issue.updated_at) < sixtyDaysAgo) {
60+
if (new Date(issue.updated_at) < thirtyDaysAgo) {
6161
try {
6262
await github.rest.issues.update({
6363
owner,
@@ -70,7 +70,7 @@ jobs:
7070
owner,
7171
repo,
7272
issue_number: issue.number,
73-
body: 'This issue has been automatically closed due to 35-day inactivity. Please feel free to reopen it if needed.'
73+
body: 'This issue has been automatically closed due to 30-day inactivity. Please feel free to reopen it if needed.'
7474
});
7575
console.log(`Closed issue #${issue.number} due to inactivity.`);
7676
} catch (error) {

0 commit comments

Comments
 (0)