triage_inactive.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
  17. with:
  18. disable-sudo: true
  19. egress-policy: block
  20. # prettier-ignore
  21. allowed-endpoints: >
  22. api.github.com:443
  23. - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
  24. with:
  25. stale-issue-message: >
  26. We triage inactive PRs and issues in order to make it easier to find
  27. active work. If this issue should remain active or becomes active
  28. again, please comment or remove the `inactive` label. The `long
  29. term` label can also be added for issues which are expected to take
  30. time.
  31. This issue is labeled `inactive` because the last activity was over
  32. 90 days ago.
  33. stale-pr-message: >
  34. We triage inactive PRs and issues in order to make it easier to find
  35. active work. If this PR should remain active, please comment or
  36. remove the `inactive` label.
  37. This PR is labeled `inactive` because the last activity was over 90
  38. days ago. This PR will be closed and archived after 14 additional
  39. days without activity.
  40. close-pr-message: >
  41. We triage inactive PRs and issues in order to make it easier to find
  42. active work. If this PR should remain active or becomes active
  43. again, please reopen it.
  44. This PR was closed and archived because there has been no new
  45. activity in the 14 days since the `inactive` label was added.
  46. stale-issue-label: 'inactive'
  47. stale-pr-label: 'inactive'
  48. exempt-issue-labels:
  49. 'long term,design idea,design update,good first issue,leads question'
  50. days-before-stale: 90
  51. days-before-close: 14
  52. days-before-issue-close: -1
  53. operations-per-run: 100