clear-stale-PRs.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. name: clear-stale-PRs
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: "0 0 * * *" # UTC Midnight everyday
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Close Stale Issues
  11. uses: actions/stale@v9.0.0
  12. with:
  13. repo-token: ${{ secrets.PAT }}
  14. # ====== for pr
  15. exempt-pr-labels: pinned,security,good-first-issue,in-progress
  16. ascending: true # gets in ascending order
  17. stale-issue-label: "stale"
  18. days-before-pr-stale: 21
  19. stale-pr-message: |
  20. This pull request has been automatically marked as stale because it
  21. has not had recent activity. It will be closed if no further activity
  22. occurs - please feel free to re-open when your project has more traction.
  23. days-before-pr-close: 7
  24. close-pr-message: |
  25. This pull request has not seen any activity since it was marked stale.
  26. Closing.
  27. operations-per-run: 250
  28. debug-only: false # true for dry run, false to actually perform the operations