stale.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. name: 'Close stale issues'
  2. # Default to 'contents: read', which grants actions to read commits.
  3. #
  4. # If any permission is set, any permission not included in the list is
  5. # implicitly set to "none".
  6. #
  7. # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
  8. permissions:
  9. contents: read
  10. on:
  11. schedule:
  12. - cron: '0 0 * * 0,3' # at midnight UTC every Sunday and Wednesday
  13. jobs:
  14. stale:
  15. runs-on: ubuntu-latest
  16. permissions:
  17. issues: write
  18. pull-requests: write
  19. steps:
  20. - uses: actions/stale@v9
  21. with:
  22. repo-token: ${{ secrets.GITHUB_TOKEN }}
  23. stale-issue-message: >
  24. This issue has been automatically marked as stale because it has not had
  25. recent activity. It will be closed if no further activity occurs. Thank you
  26. for your contributions.
  27. days-before-issue-stale: 150 # marks stale after 5 months
  28. days-before-issue-close: 30 # closes 1 month after being marked with no action
  29. stale-issue-label: "stale"
  30. exempt-issue-labels: "kind/feature,kind/enhancement"