stale.yml 1.0 KB

12345678910111213141516171819202122232425262728293031
  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: Mark stale issues and pull requests
  7. on:
  8. schedule:
  9. - cron: '0 3 * * *'
  10. jobs:
  11. stale:
  12. runs-on: ubuntu-latest
  13. permissions:
  14. issues: write
  15. pull-requests: write
  16. steps:
  17. - uses: actions/stale@v5
  18. with:
  19. days-before-issue-stale: 15
  20. days-before-issue-close: 3
  21. repo-token: ${{ secrets.GITHUB_TOKEN }}
  22. stale-issue-message: "Close due to it's no longer active, if you have any questions, you can reopen it."
  23. stale-pr-message: "Close due to it's no longer active, if you have any questions, you can reopen it."
  24. stale-issue-label: 'no-issue-activity'
  25. stale-pr-label: 'no-pr-activity'
  26. any-of-labels: 'duplicate,question,invalid,wontfix,no-issue-activity,no-pr-activity,enhancement,cant-reproduce,help-wanted'