From ebcab7953fe6e5724a48182ffa2f2b8c7b8923b5 Mon Sep 17 00:00:00 2001 From: Levan Machablishvili Date: Thu, 25 Jul 2024 16:21:59 +0400 Subject: [PATCH] Add a workflow action to mark and autoclose stale issues --- .github/workflows/staler.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/staler.yaml diff --git a/.github/workflows/staler.yaml b/.github/workflows/staler.yaml new file mode 100644 index 000000000..009616dbb --- /dev/null +++ b/.github/workflows/staler.yaml @@ -0,0 +1,18 @@ +name: 'Close stale issues' +on: + schedule: + - cron: '0 12 * * 1' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: 'This issue is marked as stale since there has not been any activity in over a year. It will be closed in 10 days' + close-issue-message: 'This issue has been closed after being marked stale for more than 10 days' + days-before-issue-stale: 365 + days-before-issue-close: 10 + exempt-issue-labels: no stale,enhancement,feature request,bug,feature/datadog-monitor,feature/slo + stale-issue-label: stale + close-issue-label: autoclosed