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.

66 lines
2.3 KiB

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