chore: add github actions for marking bug issues stale #4252
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation / 动机:
为项目添加自动化 Issue 管理功能。随着项目发展,Issue 数量不断增加,一些长期未解决的 bug 可能被遗忘或失去关注。通过引入 stale workflow,可以自动识别和处理长时间不活跃的 bug issue,提高项目维护效率。
解决的问题:
Modifications / 改动点
新增文件:
.github/workflows/stale.yml- 新增 GitHub Actions stale workflow实现的功能:
🎯 精确目标管理:仅处理带有
bug标签的 Issue,不干扰其他类型 Issue 或 PR⏰ 智能时间策略:90天无活动标记为 stale,额外30天观察期后自动关闭
🔄 自动恢复机制:启用
remove-stale-when-updated,Issue 有新活动时自动移除 stale 标签🌍 双语支持:提供中英双语的标记和关闭消息模板
🛠️ 调试友好:支持
workflow_dispatch手动触发和 dry-run 预览模式This is NOT a breaking change. / 这不是一个破坏性变更。
Screenshots or Test Results / 运行截图或测试结果
验证步骤:
bug标签的 IssueChecklist / 检查清单
requirements.txt和pyproject.toml文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txtandpyproject.toml.Summary by Sourcery
配置一个自动化的 GitHub Actions 工作流,用于给长期未活动的缺陷(bug)问题打标并关闭。
New Features:
bug的 Issue,并排除 Pull Request。workflow_dispatch支持,并提供可选的 dry-run 模式,用于预览 stale 处理行为。Enhancements:
Original summary in English
Summary by Sourcery
Configure an automated GitHub Actions workflow to label and close long-inactive bug issues.
New Features:
Enhancements: