You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.3 KiB

  1. name: 'Close stale issues and PRs'
  2. on:
  3. schedule:
  4. - cron: '30 1 * * *'
  5. workflow_dispatch:
  6. permissions:
  7. issues: write
  8. pull-requests: write
  9. jobs:
  10. stale:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/stale@v5
  14. with:
  15. repo-token: ${{ secrets.GITHUB_TOKEN }}
  16. remove-stale-when-updated: true
  17. exempt-draft-pr: true
  18. ascending: true
  19. operations-per-run: 150
  20. stale-issue-label: stale
  21. days-before-issue-stale: 90
  22. days-before-issue-close: 30
  23. exempt-issue-labels: bug,in progress,on hold,discussion,to do
  24. stale-issue-message: >
  25. This issue has been automatically marked as stale because it has not had activity in the
  26. last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity
  27. occurs.
  28. For maintainers: Please label with `bug`, `in progress`, `on hold`, `discussion` or `to do` to prevent
  29. the issue from being re-flagged.
  30. close-issue-message: >
  31. This issue has been automatically closed because it has not had activity in the last 30 days.
  32. If this issue is still valid, re-open the issue and let us know.
  33. // [stale-action-closed]
  34. stale-pr-label: stale
  35. days-before-pr-stale: 45
  36. days-before-pr-close: 30
  37. exempt-pr-labels: bug,awaiting review,breaking_change,in progress,on hold
  38. stale-pr-message: >
  39. Thank you for your contribution!
  40. This pull request has been automatically marked as stale because it has not had
  41. activity in the last 45 days. It will be closed in 30 days if no further activity occurs.
  42. Please feel free to give a status update now, or re-open when it's ready.
  43. For maintainers: Please label with `bug`, `awaiting review`, `breaking_change`, `in progress`, or `on hold`
  44. to prevent the issue from being re-flagged.
  45. close-pr-message: >
  46. Thank you for your contribution!
  47. This pull request has been automatically closed because it has not had activity in the last 30 days.
  48. Please feel free to give a status update now, ping for review, or re-open when it's ready.
  49. // [stale-action-closed]