issue_management.yml 917 B

12345678910111213141516171819202122232425
  1. name: 'Close stale issues and PRs'
  2. on:
  3. schedule:
  4. - cron: '30 2 * * *'
  5. # Allows you to run this workflow manually from the Actions tab
  6. workflow_dispatch:
  7. permissions:
  8. issues: write
  9. pull-requests: write
  10. jobs:
  11. stale:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/stale@v9
  15. with:
  16. stale-issue-message: 'This issue is stale because it has been open 6 weeks with no activity. Remove stale label or comment or this will be closed in 2 weeks.'
  17. stale-pr-message: 'This PR is stale because it has been open 6 weeks with no activity. Remove stale label or comment or this will be closed in 2 weeks.'
  18. days-before-stale: 42
  19. days-before-close: 14
  20. close-issue-label: expired
  21. close-pr-label: expired
  22. exempt-issue-labels: bug
  23. remove-stale-when-updated: true
  24. operations-per-run: 500
  25. ascending: true