From d6c004ba22784bb3e23ac831bba2802974184530 Mon Sep 17 00:00:00 2001 From: Nafees Nazik <84864519+G3root@users.noreply.github.com> Date: Tue, 14 Feb 2023 00:51:07 +0530 Subject: [PATCH] feat: add stale issues action (#7028) --- .github/workflows/cron-stale-issue.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/cron-stale-issue.yml diff --git a/.github/workflows/cron-stale-issue.yml b/.github/workflows/cron-stale-issue.yml new file mode 100644 index 0000000000..9426399d5a --- /dev/null +++ b/.github/workflows/cron-stale-issue.yml @@ -0,0 +1,22 @@ +name: Cron - mark stale for inactive issues + +permissions: + issues: write + +on: + # "Scheduled workflows run on the latest commit on the default or base branch." + # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule + schedule: + # Runs every day (see https://crontab.guru) + - cron: "0 0 * * *" +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v7 + with: + days-before-stale: 60 + include-only-assigned: true + days-before-close: -1 + +