stale.yml 801 B

1234567891011121314151617181920212223242526272829
  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. workflow_dispatch:
  12. jobs:
  13. stale:
  14. runs-on: ubuntu-latest
  15. if: ${{ github.repository == 'gedoor/legado' }}
  16. permissions:
  17. issues: write
  18. steps:
  19. - uses: actions/stale@v9
  20. with:
  21. repo-token: ${{ secrets.GITHUB_TOKEN }}
  22. stale-issue-message: '由于长期没有状态更新,该问题将于5天后自动关闭。如有需要可重新打开。'
  23. days-before-stale: 30
  24. days-before-close: 5
  25. operations-per-run: 100