stale.yaml 1.3 KB

123456789101112131415161718192021222324252627
  1. # .github/workflows/stale.yml
  2. name: Mark stale issues and pull requests
  3. on:
  4. schedule:
  5. - cron: '30 22 * * *' # run at 22:30+08 every day
  6. permissions:
  7. issues: write
  8. pull-requests: write
  9. jobs:
  10. stale:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/stale@v10
  14. with:
  15. days-before-stale: 90 # 90 days
  16. days-before-close: 7 # 7 days after marked as stale
  17. stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
  18. close-issue-message: 'This issue has been automatically closed because it has not had recent activity. Please open a new issue if you still have this problem.'
  19. stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.'
  20. close-pr-message: 'This pull request has been automatically closed because it has not had recent activity.'
  21. # If there are specific labels, exempt them from being marked as stale, for example:
  22. exempt-issue-labels: 'enhancement,tracked'
  23. # exempt-pr-labels: 'bug,enhancement,help wanted'
  24. repo-token: ${{ secrets.GITHUB_TOKEN }} # token provided by GitHub