From 043e8a93c4dffc58a036d121edf93e1769e2c5ea Mon Sep 17 00:00:00 2001 From: ammario Date: Mon, 18 Jul 2022 19:02:36 +0000 Subject: [PATCH] ci: add stale workflow --- .github/stale.yaml | 12 ------------ .github/workflows/stale.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 .github/stale.yaml create mode 100644 .github/workflows/stale.yaml diff --git a/.github/stale.yaml b/.github/stale.yaml deleted file mode 100644 index 1c8db8601a4fb..0000000000000 --- a/.github/stale.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Label to apply when stale. -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no activity occurs in the next 5 days. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000000000..ea0200a5200c5 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,13 @@ +name: Stale Issue Cron +on: + schedule: + # Every day at midnight + - cron: "0 0 * * *" + workflow_dispatch: +jobs: + stale: + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5.1.0