From 01a272f8e6a4662729360e9f981929ebe96d6c2f Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Wed, 11 Aug 2021 17:57:22 +0200 Subject: [PATCH] Autoclose issues being in needs info state for over 90 days --- .github/workflows/autoclose-needs-info.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/autoclose-needs-info.yml diff --git a/.github/workflows/autoclose-needs-info.yml b/.github/workflows/autoclose-needs-info.yml new file mode 100644 index 000000000..82a864939 --- /dev/null +++ b/.github/workflows/autoclose-needs-info.yml @@ -0,0 +1,22 @@ +name: 'Close issues and PRs needing info for too long' +on: + schedule: + - cron: '30 1 * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + days-before-stale: -1 + days-before-close: 90 + close-issue-message: 'This issue is missing necessary information and cannot be worked on in its current state. It has therefore been closed to keep the issue tracker clean. If you have more information, feel free to reopen it.' + close-pr-message: 'This PR is missing necessary information and cannot be merged in its current state. It has therefore been closed to keep the issue tracker clean. If you have more information, feel free to reopen it.' + only-labels: 'needs info' + stale-issue-label: 'needs info' + stale-pr-label: 'needs info'