From d0a8fe2a221968e30edd44d2e29e872c709c80ad Mon Sep 17 00:00:00 2001 From: Jaroslav Novotny Date: Mon, 10 Jun 2024 14:34:03 +0200 Subject: [PATCH] ci: add issue watcher --- .github/workflows/issue_watcher.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/issue_watcher.yaml diff --git a/.github/workflows/issue_watcher.yaml b/.github/workflows/issue_watcher.yaml new file mode 100644 index 0000000..200e223 --- /dev/null +++ b/.github/workflows/issue_watcher.yaml @@ -0,0 +1,21 @@ +name: Issue watcher +on: + workflow_dispatch: + schedule: + # Date follows the cron syntax: https://en.wikipedia.org/wiki/Cron + # Every Monday at 6:30 AM + - cron: '30 6 * * 1' + +jobs: + close-issues: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 14 + stale-issue-message: "This issue has been labeled as stale because it has been for 14 days without any activity." + stale-issue-label: "stale" + days-before-issue-close: 14 + close-issue-message: "This issue has been closed because it has been for 14 days without any activity since labeled as stale." + only-labels: "waiting for response", "can't reproduce", "invalid", "wontfix", "duplicate" + debug-only: true \ No newline at end of file