From 0dd43346226150330ee3e969b338c31e1e6d21c2 Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Fri, 21 Jul 2023 12:36:24 -0700 Subject: [PATCH] misc: Add workflow to close stale issues (#96) Create a new workflow file that will hold jobs that are for managing the repository, issues, prs, etc. This changeset then adds a job to close issues that have been open for 30 days without a response someone marks the issue as "needs details." Change-Id: I23b9b6aa5fa67f205e116c88d5449cb69f53b6f9 Signed-off-by: Jason Lowe-Power --- .github/workflows/utils.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/utils.yaml diff --git a/.github/workflows/utils.yaml b/.github/workflows/utils.yaml new file mode 100644 index 0000000000..91d0bf1722 --- /dev/null +++ b/.github/workflows/utils.yaml @@ -0,0 +1,19 @@ +# This workflow file contains miscellaneous tasks to manage the repository. +name: Utils for Repository +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +jobs: + # This job runs the stale action to close issues that have been inactive for 30 days. + # It is scheduled to run every day at 1:30 AM UTC. + close-stale-issues: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8.0.0 + with: + close-issue-message: 'This issue is being closed because it has been inactive waiting for response for 30 days. If this is still an issue, please open a new issue and reference this one.' + days-before-stale: 21 + days-before-close: 7 + any-of-labels: 'needs details'