issue-management-stale-action.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: Issue management - run stale action
  2. on:
  3. schedule:
  4. # hourly at minute 23
  5. - cron: "23 * * * *"
  6. permissions:
  7. contents: read
  8. jobs:
  9. stale:
  10. permissions:
  11. issues: write # for actions/stale to close stale issues
  12. pull-requests: write # for actions/stale to close stale PRs
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
  16. with:
  17. repo-token: ${{ secrets.GITHUB_TOKEN }}
  18. days-before-stale: 7
  19. days-before-close: 7
  20. only-labels: "needs author feedback"
  21. stale-issue-label: stale
  22. stale-issue-message: >
  23. This has been automatically marked as stale because it has been marked
  24. as needing author feedback and has not had any activity for 7 days.
  25. It will be closed automatically if there is no response from the author
  26. within 7 additional days from this comment.
  27. stale-pr-label: stale
  28. stale-pr-message: >
  29. This has been automatically marked as stale because it has been marked
  30. as needing author feedback and has not had any activity for 7 days.
  31. It will be closed automatically if there is no response from the author
  32. within 7 additional days from this comment.