Skip to content

ci: auto-close stale issues after 30 days#730

Merged
XuanYang-cn merged 1 commit intozilliztech:mainfrom
liliu-z:feat/auto-close-stale-issues
Mar 2, 2026
Merged

ci: auto-close stale issues after 30 days#730
XuanYang-cn merged 1 commit intozilliztech:mainfrom
liliu-z:feat/auto-close-stale-issues

Conversation

@liliu-z
Copy link
Copy Markdown
Collaborator

@liliu-z liliu-z commented Mar 2, 2026

Summary

  • Add a scheduled GitHub Actions workflow that automatically closes stale issues
  • An issue is closed when the last comment is from a zilliztech org member and there has been no response for over 30 days
  • Issues with the keep-open label are exempt from auto-closure
  • A comment is posted before closing, informing the user they can reopen or add the keep-open label

How it works

  • Runs daily at 02:00 UTC (also supports manual trigger via workflow_dispatch)
  • Uses author_association (MEMBER/OWNER) to identify org members — no extra tokens needed
  • Only requires issues: write permission with the default GITHUB_TOKEN

Test plan

  • Merge to main and verify the workflow appears in the Actions tab
  • Manually trigger via workflow_dispatch to test on current open issues
  • Verify issues with keep-open label are skipped
  • Verify only issues where last comment is from org member and >30 days old are closed

🤖 Generated with Claude Code

Auto-close issues where the last comment is from a team member
(zilliztech org) and has had no response for over 30 days.
Issues with the `keep-open` label are exempt from auto-closure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: liliu-z
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@XuanYang-cn XuanYang-cn merged commit bb2c5c1 into zilliztech:main Mar 2, 2026
4 checks passed
@liliu-z liliu-z deleted the feat/auto-close-stale-issues branch March 2, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants