Skip to content

feat: add scheduled workflow to automatically close stale issues and pull requests#52

Merged
chenyme merged 4 commits intolinux-do:masterfrom
OrenZhang:chore_copilot
Jul 4, 2025
Merged

feat: add scheduled workflow to automatically close stale issues and pull requests#52
chenyme merged 4 commits intolinux-do:masterfrom
OrenZhang:chore_copilot

Conversation

@OrenZhang
Copy link
Copy Markdown
Contributor

例行检查

  • 我已阅读并理解 贡献者公约
  • 我已阅读并同意 贡献者许可协议 (CLA),确认我的贡献将根据项目的 MIT 许可证进行许可,
  • 我知晓如果此 PR 并不做出实质性更改,或可被认为是为了PR被合并而提交PR的,则可能不会被合并,

变更内容

添加自动关闭不活跃的 ISSUE 和 PR 的 Action

@OrenZhang OrenZhang requested a review from chenyme July 4, 2025 03:17
@OrenZhang OrenZhang self-assigned this Jul 4, 2025
Copilot AI review requested due to automatic review settings July 4, 2025 03:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

本 PR 新增了一个定时工作流,用于每天自动检测并关闭长时间未更新的 Issue 和 PR。
主要改动:

  • .github/workflows 下添加新的 close_ticket.yml
  • 配置每日定时触发(cron)
  • 使用 actions/stale@v9 插件并自定义停滞和关闭消息
Comments suppressed due to low confidence (2)

.github/workflows/close_ticket.yml:25

  • 参数 if-no-issue-labels 并非 actions/stale@v9 文档中支持的输入项,建议确认插件最新参数名称(如 skip-issue-labelsonly-labels 等)并进行调整。
          if-no-issue-labels: ''

.github/workflows/close_ticket.yml:15

  • [nitpick] 为保证版本稳定性,建议将 actions/stale@v9 固定到具体次要版本(例如 actions/[email protected]),以便在插件发布新版本时避免意外变更。
      - uses: actions/stale@v9

@chenyme chenyme merged commit 88cf4c4 into linux-do:master Jul 4, 2025
9 checks passed
@OrenZhang OrenZhang deleted the chore_copilot branch July 4, 2025 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.

3 participants