File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}`);
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,
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) {
You can’t perform that action at this time.
0 commit comments