Commit e4f8ae9b authored by Muyang Li's avatar Muyang Li
Browse files

[Auto Merge] [Dont Sync] chore: increase inactivity threshold from 30 to 60 (#325)

parents 138d2843 703bffde
......@@ -20,7 +20,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const thirtyDaysAgo = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000);
const sixtyDaysAgo = new Date(Date.now() - 60 * 24 * 60 * 60 * 1000);
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
console.log(`Owner: ${owner}, Repo: ${repo}`);
......@@ -60,7 +60,7 @@ jobs:
console.log(`Skipping issue #${issue.number} as it's marked as 'good first issue'`);
continue;
}
if (new Date(issue.updated_at) < thirtyDaysAgo) {
if (new Date(issue.updated_at) < sixtyDaysAgo) {
try {
await github.rest.issues.update({
owner,
......@@ -73,7 +73,7 @@ jobs:
owner,
repo,
issue_number: issue.number,
body: 'This issue has been automatically closed due to 30-day inactivity. Please feel free to reopen it if needed.'
body: 'This issue has been automatically closed due to 60-day inactivity. Please feel free to reopen it if needed.'
});
console.log(`Closed issue #${issue.number} due to inactivity.`);
} catch (error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment