close-inactive-issues.yml 1018 B

1234567891011121314151617181920212223242526272829303132
  1. name: Close inactive issues
  2. on:
  3. schedule:
  4. - cron: "5 0 * * *"
  5. jobs:
  6. close-issues:
  7. runs-on: ubuntu-latest
  8. permissions:
  9. issues: write
  10. pull-requests: write
  11. steps:
  12. - uses: actions/stale@v5
  13. with:
  14. days-before-issue-stale: 7
  15. days-before-issue-close: 7
  16. days-before-pr-stale: 7
  17. days-before-pr-close: 7
  18. stale-issue-label: "stale"
  19. stale-pr-label: "stale"
  20. stale-issue-message: "Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again."
  21. close-issue-message: "Closing due to inactivity."
  22. stale-pr-message: "Bumping this pull request because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again."
  23. close-pr-message: "Closing due to inactivity."
  24. repo-token: ${{ secrets.GITHUB_TOKEN }}