stale.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: "Close stale issues"
  2. on:
  3. schedule:
  4. - cron: "20 0 * * *"
  5. workflow_dispatch:
  6. inputs:
  7. debug-only:
  8. description: 'In debug mod'
  9. required: false
  10. default: 'false'
  11. permissions:
  12. contents: read
  13. jobs:
  14. stale:
  15. permissions:
  16. issues: write # for actions/stale to close stale issues
  17. pull-requests: write # for actions/stale to close stale PRs
  18. actions: write
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/stale@v9
  22. with:
  23. stale-issue-message: 'Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.'
  24. stale-pr-message: "PRs go stale after 21d of inactivity. Stale PRs rot after an additional 7d of inactivity and eventually close."
  25. stale-issue-label: 'lifecycle/stale'
  26. exempt-issue-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned'
  27. stale-pr-label: 'lifecycle/stale'
  28. exempt-pr-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned'
  29. days-before-stale: 21
  30. days-before-close: 7
  31. debug-only: ${{ github.event.inputs.debug-only }}
  32. exempt-all-pr-milestones: true
  33. exempt-all-pr-assignees: true
  34. operations-per-run: 200