stale.yml 1.1 KB

123456789101112131415161718192021222324252627
  1. name: 'Close stale issues and PR'
  2. on:
  3. schedule:
  4. - cron: '30 1 * * *'
  5. permissions:
  6. contents: read
  7. jobs:
  8. stale:
  9. permissions:
  10. issues: write # for actions/stale to close stale issues
  11. pull-requests: write # for actions/stale to close stale PRs
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
  15. with:
  16. egress-policy: audit
  17. - uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
  18. with:
  19. repo-token: ${{ secrets.GITHUB_TOKEN }}
  20. stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
  21. stale-pr-message: 'This pr is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
  22. close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity.'
  23. exempt-issue-labels: kind/feature
  24. days-before-stale: 90
  25. days-before-close: 30