close-inactive.yml 978 B

1234567891011121314151617181920212223242526
  1. name: Close inactive issues and pr
  2. on:
  3. schedule:
  4. - cron: "00 11 * * *"
  5. jobs:
  6. test:
  7. runs-on: ubuntu-latest
  8. permissions:
  9. pull-requests: write
  10. issues: write
  11. steps:
  12. - uses: actions/stale@v5
  13. with:
  14. days-before-issue-stale: 360
  15. days-before-issue-close: 14
  16. stale-issue-label: "stale"
  17. stale-issue-message: "This issue is stale because it has been open for 360 days with no activity."
  18. close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
  19. repo-token: ${{ secrets.GITHUB_TOKEN }}
  20. days-before-pr-stale: 360
  21. days-before-pr-close: 14
  22. stale-pr-label: "stale"
  23. stale-pr-message: "This pr is stale because it has been open for 360 days with no activity."
  24. close-pr-message: "This pr was closed because it has been inactive for 14 days since being marked as stale."