stale.yml 718 B

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