diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..5ff022f --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,30 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +permissions: + issues: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ github.token }} + days-before-issue-stale: 90 + days-before-issue-close: 14 + stale-issue-message: > + Thank you for contributing to the stencil repository! + This issue has been marked as stale since it has not had any activity in the last 90 days. It will be closed in the next 14 + days unless any other activity occurs or one of the following labels is added: "lifecycle/frozen". Please reach out + to the triage team (`@jaredallard`) if you think this issue is still relevant or you are interested in getting the + issue resolved. + close-issue-message: > + This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out + to the triage team (`@jaredallard`). Thanks! + stale-issue-label: 'lifecycle/stale' + exempt-issue-labels: 'lifecycle/frozen,status/backlog,status/in-progress,status/in-review' + close-issue-reason: "not_planned" + ascending: true