From c1e7cf1983f2609d4c7fe4e43a8d3b8c9dc86b50 Mon Sep 17 00:00:00 2001 From: Alexej Kubarev Date: Tue, 9 Apr 2024 11:09:53 +0200 Subject: [PATCH] build(ci): Adding stale workflow for issues --- .github/workflows/stale-issues.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 0000000..5278245 --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,19 @@ +name: 'Close stale issues and PR' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 days.' + close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 14 days with no activity .' + days-before-stale: 30 + days-before-close: 7 + days-before-pr-stale: 45 + days-before-pr-close: 14