stale.yml 1002 B

123456789101112131415161718192021222324
  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: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
  15. with:
  16. repo-token: ${{ secrets.GITHUB_TOKEN }}
  17. 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.'
  18. 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.'
  19. close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity.'
  20. exempt-issue-labels: kind/feature
  21. days-before-stale: 90
  22. days-before-close: 30