stale.yml 975 B

1234567891011121314151617181920212223242526272829
  1. name: Mark stale issues and pull requests
  2. on:
  3. schedule:
  4. - cron: "0 0 * * *"
  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@v8
  15. with:
  16. repo-token: ${{ secrets.GITHUB_TOKEN }}
  17. stale-issue-message: 'This issue is stale because it has been open for 120 days with no activity. Remove the `stale` label or comment or this will be closed in 15 days'
  18. stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove the `stale` label or comment on this issue, or it will be closed in 15 days'
  19. stale-issue-label: 'stale'
  20. stale-pr-label: 'stale'
  21. days-before-stale: 120
  22. days-before-close: 15
  23. exempt-issue-labels: 'pinned'
  24. exempt-pr-labels: 'pinned'