Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
e4f8ae9b
Commit
e4f8ae9b
authored
Apr 27, 2025
by
Muyang Li
Browse files
[Auto Merge] [Dont Sync] chore: increase inactivity threshold from 30 to 60 (#325)
parents
138d2843
703bffde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
.github/workflows/close_inactive_issues.yaml
.github/workflows/close_inactive_issues.yaml
+3
-3
No files found.
.github/workflows/close_inactive_issues.yaml
View file @
e4f8ae9b
...
...
@@ -20,7 +20,7 @@ jobs:
with
:
github-token
:
${{secrets.GITHUB_TOKEN}}
script
:
|
const
thir
tyDaysAgo = new Date(Date.now() -
3
0 * 24 * 60 * 60 * 1000);
const
six
tyDaysAgo = new Date(Date.now() -
6
0 * 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) <
thir
tyDaysAgo) {
if (new Date(issue.updated_at) <
six
tyDaysAgo) {
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
3
0-day inactivity. Please feel free to reopen it if needed.'
body: 'This issue has been automatically closed due to
6
0-day inactivity. Please feel free to reopen it if needed.'
});
console.log(`Closed issue #${issue.number} due to inactivity.`);
} catch (error) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment