stale.yml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: 'Close stale issues'
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. # 1:30am every day
  6. - cron: '30 1 * * *'
  7. permissions: {}
  8. jobs:
  9. stale:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Generate GitHub App token
  13. uses: electron/github-app-auth-action@cc6751b3b5e4edc5b9a4ad0a021ac455653b6dc8 # v1.0.0
  14. id: generate-token
  15. with:
  16. creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
  17. - uses: actions/stale@5ebf00ea0e4c1561e9b43a292ed34424fb1d4578 # tag: v6.0.1
  18. with:
  19. repo-token: ${{ steps.generate-token.outputs.token }}
  20. days-before-stale: 90
  21. days-before-close: 30
  22. stale-issue-label: stale
  23. operations-per-run: 1750
  24. stale-issue-message: >
  25. This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the [latest version of Electron](https://www.electronjs.org/releases/stable) or in the [beta](https://www.electronjs.org/releases/beta)—please include it with your comment!
  26. close-issue-message: >
  27. This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a [supported version of Electron](https://www.electronjs.org/docs/latest/tutorial/electron-timelines#timeline) please open a new issue and include instructions for reproducing the issue.
  28. exempt-issue-labels: "discussion,security \U0001F512,enhancement :sparkles:,status/confirmed"
  29. only-pr-labels: not-a-real-label
  30. pending-repro:
  31. runs-on: ubuntu-latest
  32. if: ${{ always() }}
  33. needs: stale
  34. steps:
  35. - name: Generate GitHub App token
  36. uses: electron/github-app-auth-action@cc6751b3b5e4edc5b9a4ad0a021ac455653b6dc8 # v1.0.0
  37. id: generate-token
  38. with:
  39. creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
  40. - uses: actions/stale@5ebf00ea0e4c1561e9b43a292ed34424fb1d4578 # tag: v6.0.1
  41. with:
  42. repo-token: ${{ steps.generate-token.outputs.token }}
  43. days-before-stale: -1
  44. days-before-close: 10
  45. remove-stale-when-updated: false
  46. stale-issue-label: blocked/need-repro
  47. stale-pr-label: not-a-real-label
  48. operations-per-run: 1750
  49. close-issue-message: >
  50. Unfortunately, without a way to reproduce this issue, we're unable to continue investigation. This issue has been closed and will not be monitored further. If you're able to provide a minimal test case that reproduces this issue on a [supported version of Electron](https://www.electronjs.org/docs/latest/tutorial/electron-timelines#timeline) please open a new issue and include instructions for reproducing the issue.