2
0

close-stale-issues.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # close-stale-issues (https://github.com/marketplace/actions/close-stale-issues)
  2. name: Close stale issues/PRs
  3. on:
  4. schedule:
  5. - cron: '0 4 * * *'
  6. workflow_dispatch:
  7. permissions:
  8. actions: write
  9. issues: write
  10. pull-requests: write
  11. jobs:
  12. stale:
  13. if: github.repository == 'netbox-community/netbox'
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/stale@v9
  17. with:
  18. # General parameters
  19. operations-per-run: 200
  20. remove-stale-when-updated: false
  21. # Issue parameters
  22. close-issue-message: >
  23. This issue has been automatically closed due to lack of activity. In an
  24. effort to reduce noise, please do not comment any further. Note that the
  25. core maintainers may elect to reopen this issue at a later date if deemed
  26. necessary.
  27. days-before-issue-stale: 90
  28. days-before-issue-close: 30
  29. exempt-issue-labels: 'status: accepted,status: backlog,status: blocked'
  30. stale-issue-label: 'pending closure'
  31. stale-issue-message: >
  32. This issue has been automatically marked as stale because it has not had
  33. recent activity. It will be closed if no further activity occurs. NetBox
  34. is governed by a small group of core maintainers which means not all opened
  35. issues may receive direct feedback. **Do not** attempt to circumvent this
  36. process by "bumping" the issue; doing so will result in its immediate closure
  37. and you may be barred from participating in any future discussions. Please see
  38. our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
  39. # Pull request parameters
  40. close-pr-message: >
  41. This PR has been automatically closed due to lack of activity.
  42. days-before-pr-stale: 30
  43. days-before-pr-close: 15
  44. exempt-pr-labels: 'status: blocked'
  45. stale-pr-label: 'pending closure'
  46. stale-pr-message: >
  47. This PR has been automatically marked as stale because it has not had
  48. recent activity. It will be closed automatically if no further action is
  49. taken.