mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-29 04:10:17 +08:00
[ci] update close-issue.yml
This commit is contained in:
8
.github/workflows/close-issue.yml
vendored
8
.github/workflows/close-issue.yml
vendored
@@ -58,6 +58,14 @@ jobs:
|
|||||||
// check inactivity
|
// check inactivity
|
||||||
if (now - lastActivityTime > inactivePeriod) {
|
if (now - lastActivityTime > inactivePeriod) {
|
||||||
console.log(`Closing inactive issue: #${issue.number} (No recent replies for 7 days)`);
|
console.log(`Closing inactive issue: #${issue.number} (No recent replies for 7 days)`);
|
||||||
|
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: issue.number,
|
||||||
|
body: "This issue has been automatically closed due to inactivity for 7 days."
|
||||||
|
});
|
||||||
|
|
||||||
await github.rest.issues.update({
|
await github.rest.issues.update({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
Reference in New Issue
Block a user