From c44d7d6a627d6a82a00ff64abef75924aeeabad4 Mon Sep 17 00:00:00 2001 From: Bryan Kneis Date: Tue, 29 Oct 2024 16:57:41 +0000 Subject: [PATCH] Add github workflow to mark issues as stale then delete after 2 months (#1340) * Add github workflow to mark issues as stale then delete after 2 months * Ignore issues with certain labels --- .github/workflows/stale.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/stale.yaml diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 000000000..89876c3c8 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,23 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 60 + days-before-issue-close: 30 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }} + exempt-issue-labels: "in-progress,assigned,kind/enhancement"