From c26b4f2545dc4f325ff42a2669c1847c3210f5b1 Mon Sep 17 00:00:00 2001 From: Hamza Mahjoubi Date: Thu, 31 Oct 2024 15:14:07 +0100 Subject: [PATCH] chore: stale workflow Signed-off-by: Hamza Mahjoubi --- .github/stale.yml | 35 ----------------------------------- .github/workflows/stale.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index d9d7c99df..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,35 +0,0 @@ -# SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors -# SPDX-License-Identifier: AGPL-3.0-or-later -# We wait 1 months to check -daysUntilStale: 30 - -# If no answer after two weeks, we close -daysUntilClose: 14 - -# Only issues that requires info from the op -onlyLabels: - - "needs info" - -# Only if issues that are not triaged -exemptLabels: - - "1. to develop" - - "2. developing" - - "3. to review" - - "4. to release" - - security - -# Label to use when marking as stale -staleLabel: stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity and seems to be missing some essential information. - It will be closed if no further activity occurs. Thank you - for your contributions. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - -# Limit to only `issues` or `pulls` -only: issues diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..a51bad832 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT +name: Close stale issues + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + + permissions: + issues: write + + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.COMMAND_BOT_PAT }} + stale-issue-message: > + Hi there! It looks like this issue hasn’t seen much activity for a while and might need a bit more information to move forward. + If we don’t hear back soon, we may close it to keep things organized. + Thanks again for your contributions – we really appreciate it! + stale-issue-label: 'stale' + only-labels: 'needs info' + exempt-issue-labels: '1. to develop,2. developing,3. to review,4. to release,discussion' + days-before-stale: 30 + days-before-close: 14 + debug-only: ${{ vars.WORKFLOW_STALE_DEBUG_ONLY == 'yes' }}