feat: add stale issues action (#7028)

This commit is contained in:
Nafees Nazik 2023-02-14 00:51:07 +05:30 committed by GitHub
parent afb9605f0a
commit d6c004ba22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/cron-stale-issue.yml vendored Normal file
View File

@ -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