Skip to content

fix: make issue auto-close strictly label-based#2941

Merged
crazylxr merged 1 commit into
masterfrom
fix/issue-close-workflow-label-filter
May 20, 2026
Merged

fix: make issue auto-close strictly label-based#2941
crazylxr merged 1 commit into
masterfrom
fix/issue-close-workflow-label-filter

Conversation

@crazylxr

Copy link
Copy Markdown
Collaborator

Background

A batch of old issues (including issues without close-required labels) were auto-closed by github-actions[bot].

Root Cause

.github/workflows/issue-close-require.yml used actions-cool/issues-helper@v3, and the close behavior became non-deterministic / not aligned with expected label filtering.

Changes

  • Replace third-party close action with actions/github-script@v7
  • Add explicit permissions: issues: write
  • Implement deterministic close logic:
    • only process open issues with labels 🤔 Need Reproduce or needs more info
    • only close issues inactive for 3 days
    • post bilingual close comments before closing
    • skip PRs

Impact

Prevents unlabeled issues from being closed by this workflow and keeps close policy transparent and auditable.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@crazylxr crazylxr merged commit a323dcc into master May 20, 2026
15 of 16 checks passed
@crazylxr crazylxr deleted the fix/issue-close-workflow-label-filter branch May 20, 2026 04:03
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.

2 participants