From 891852ed9c2c4439b5f928faa7a3c01386bec868 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 2 Feb 2021 13:22:35 -0500 Subject: [PATCH] workflows: Update stale-issue-bot.yaml to also close invalid tickets Signed-off-by: Kevin O'Connor --- .github/workflows/stale-issue-bot.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale-issue-bot.yaml b/.github/workflows/stale-issue-bot.yaml index e33236a9..93e9d8c6 100644 --- a/.github/workflows/stale-issue-bot.yaml +++ b/.github/workflows/stale-issue-bot.yaml @@ -2,7 +2,7 @@ name: "Close stale issues" on: schedule: - - cron: "0 0 * * *" + - cron: '0 0 * * *' jobs: stale: runs-on: ubuntu-latest @@ -29,3 +29,14 @@ jobs: exempt-issue-labels: 'enhancement,bug' days-before-stale: 21 days-before-close: 7 + invalid: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-label: invalid + stale-pr-label: invalid + days-before-stale: -1 + days-before-close: 2 + remove-stale-when-updated: false