stale.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. name: 'Triage inactive issues and PRs'
  5. on:
  6. schedule:
  7. - cron: '30 1 * * *'
  8. permissions:
  9. issues: write # For actions/stale to close stale issues.
  10. pull-requests: write # For actions/stale to close stale PRs.
  11. jobs:
  12. stale:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Harden Runner
  16. uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
  17. with:
  18. egress-policy: audit
  19. - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
  20. with:
  21. stale-issue-message: >
  22. We triage inactive PRs and issues in order to make it easier to find
  23. active work. If this issue should remain active or becomes active
  24. again, please comment or remove the `inactive` label. The `long
  25. term` label can also be added for issues which are expected to take
  26. time.
  27. This issue is labeled `inactive` because the last activity was over
  28. 90 days ago.
  29. stale-pr-message: >
  30. We triage inactive PRs and issues in order to make it easier to find
  31. active work. If this PR should remain active, please comment or
  32. remove the `inactive` label.
  33. This PR is labeled `inactive` because the last activity was over 90
  34. days ago. This PR will be closed and archived after 14 additional
  35. days without activity.
  36. close-pr-message: >
  37. We triage inactive PRs and issues in order to make it easier to find
  38. active work. If this PR should remain active or becomes active
  39. again, please reopen it.
  40. This PR was closed and archived because there has been no new
  41. activity in the 14 days since the `inactive` label was added.
  42. stale-issue-label: 'inactive'
  43. stale-pr-label: 'inactive'
  44. exempt-issue-labels:
  45. 'long term,design idea,design update,good first issue,leads question'
  46. days-before-stale: 90
  47. days-before-close: 14
  48. days-before-issue-close: -1
  49. operations-per-run: 100