From 2d051daa1501eeb5df04043b7900961b4f1ef7b8 Mon Sep 17 00:00:00 2001 From: Naveen Date: Sat, 20 Jan 2024 02:02:11 +0530 Subject: [PATCH] Setup auto-close for stale issues --- .github/workflows/no-response.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/no-response.yml diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 000000000..eef815bdc --- /dev/null +++ b/.github/workflows/no-response.yml @@ -0,0 +1,25 @@ +name: no-response + +# Both `issue_comment` and `scheduled` event types are required for this Action +# to work properly. +on: + issue_comment: + types: [created] + schedule: + # Run daily at midnight. + - cron: '0 0 * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + noResponse: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@v0.5.0 + with: + token: ${{ github.token }} + # Number of days of inactivity before an issue is closed for lack of response. + daysUntilClose: 30 + responseRequiredLabel: waiting for author