From 9e1cd021b3510cc36b67bccddfb18f17842fb34f Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Tue, 20 Sep 2022 16:19:00 -0700 Subject: [PATCH] Add workflow for stale issues/PRs --- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000000..a2ca85fed2f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + stale-issue-message: 'This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 90 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 30 days. Thank you for your contributions.' + stale-pr-message: 'This repository uses an automated workflow to automatically label pull requests which have not had any activity (commit/comment/label) for 90 days. This helps us manage the community pull requests better. If the pull request is still relevant, please add a comment to the pull request so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the pull request in 30 days. Thank you for your contributions.' + stale-issue-label: 'status/stale' + stale-pr-label: 'status/stale' + days-before-stale: 90 + days-before-close: 30 + exempt-issue-labels: 'internal' + exempt-pr-labels: 'internal' + exempt-all-milestones: true + exempt-all-assignees: true + operations-per-run: 200