stale.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. name: "Manage stale issues and PRs"
  2. on:
  3. schedule:
  4. - cron: "30 1 * * *"
  5. issues:
  6. types:
  7. - edited
  8. - reopened
  9. - labeled
  10. - unlabeled
  11. - milestoned
  12. - demilestoned
  13. - assigned
  14. - unassigned
  15. issue_comment:
  16. types:
  17. - created
  18. - edited
  19. pull_request_review:
  20. push:
  21. paths:
  22. - ".github/workflows/stale.yml"
  23. permissions:
  24. actions: write # https://github.com/actions/stale/issues/1159
  25. # contents: write # only for delete-branch option, which we leave to default `false` right now.
  26. issues: write
  27. pull-requests: write
  28. jobs:
  29. stale:
  30. runs-on: ubuntu-latest
  31. steps:
  32. - uses: actions/stale@v9
  33. with:
  34. days-before-stale: 60
  35. days-before-close: 7
  36. stale-issue-label: stale
  37. stale-pr-label: stale
  38. exempt-all-assignees: true
  39. exempt-draft-pr: true
  40. any-of-labels: awaiting review,awaiting response
  41. exempt-issue-labels: important,good first issue
  42. exempt-pr-labels: important,bugfix
  43. stale-issue-message: >
  44. This issue has been automatically marked as stale because it has not had recent activity.
  45. It will be closed if no further activity occurs.
  46. If this is still an issue, please make sure it is up to date and if so,
  47. add a comment that this is still an issue to keep it open.
  48. Thank you for your contribution.
  49. stale-pr-message: >
  50. This pull request has been automatically marked as stale because it has not had recent activity.
  51. It will be closed if no further activity occurs.
  52. If this pull request is still valid, please make sure it is up to date and if so,
  53. add a comment that this is still valid to keep it open.
  54. Thank you for your contribution.
  55. close-issue-message: >
  56. This issue has been automatically closed due to inactivity.
  57. If this issue still applies, please make sure it's up to date (e.g. answer any outstanding questions) and re-open it.
  58. Thank you for your contribution.
  59. close-pr-message: >
  60. This pull request has been automatically closed due to inactivity.
  61. If this pull request is still valid, please make sure it is up to date (e.g. answer any outstanding questions) and re-open it.
  62. Thank you for your contribution.