stale.yml 748 B

123456789101112131415161718192021222324252627
  1. # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
  2. #
  3. # You can adjust the behavior by modifying this file.
  4. # For more information, see:
  5. # https://github.com/actions/stale
  6. name: closeStaleIssue
  7. on:
  8. schedule:
  9. # 每5天北京时间9点
  10. - cron: '30 1 1/5 * *'
  11. jobs:
  12. stale:
  13. runs-on: ubuntu-latest
  14. if: ${{ github.repository == 'gedoor/legado' }}
  15. permissions:
  16. issues: write
  17. steps:
  18. - uses: actions/stale@v8
  19. with:
  20. repo-token: ${{ secrets.GITHUB_TOKEN }}
  21. stale-issue-message: '由于长期没有状态更新,该问题将于5天后自动关闭。如有需要可重新打开。'
  22. days-before-stale: 30
  23. days-before-close: 5