From d0615648ba230ad63526f9df3a8b4917253e9ad8 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Thu, 13 Jun 2024 14:09:29 +0400 Subject: [PATCH] add stale issues workflow --- .github/workflows/stale.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..3c2cdf6c --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,21 @@ +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: 180 + days-before-issue-close: 7 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 180 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." + repo-token: ${{ secrets.GITHUB_TOKEN }} + exempt-issue-labels: "bug"