From 7c1814c760b1c98d1496b4a1b41f76c61bf82c39 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 17 Jan 2024 18:01:31 +0100 Subject: [PATCH] Add cleanup.yml --- .github/workflows/cleanup.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..d4653a3 --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,19 @@ +name: Issue cleanup +on: + schedule: + - cron: '0 23 14 * *' # At 23:00, 14th day of each month +jobs: + triage_issues: + name: Issue triage + runs-on: ubuntu-latest + steps: + - name: Find old issues and mark them stale + uses: Krizzu/issue-triage-action@v1.0.0 + with: + ghToken: ${{ secrets.GITHUB_TOKEN }} + staleAfter: 30 + closeAfter: 60 + staleLabel: "STALE 📺" + staleComment: "This issue is %DAYS_OLD% days old, marking as stale! cc: @%AUTHOR%" + closeComment: "Issue last updated %DAYS_OLD% days ago! Closing down!" + showLogs: true