From 4c843673a69afb95135ecd84ac0cfaf62dbf4e21 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Tue, 6 Feb 2024 14:02:56 +0100 Subject: [PATCH] ci: Copy settings from tools https://github.com/nf-core/modules/pull/2880 --- .github/workflows/stale.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 48fe5bd4d76..241a632235e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,7 @@ -name: "Close stale issues and PRs" +name: "Close stale issues and stale PRs" on: schedule: - - cron: "30 1 * * *" + - cron: "30 1 * * 7" # Once a week jobs: stale: @@ -14,5 +14,13 @@ jobs: with: enable-statistics: true debug-only: true - stale-issue-message: "Message to comment on stale issues. If none provided, will not mark issues stale" - stale-pr-message: "Message to comment on stale PRs. If none provided, will not mark PRs stale" + stale-issue-message: "This issue is stale because it has been inactive for more than 30 days. More information is required. Remove stale label or comment or this will be closed in 20 days." + stale-pr-message: "This PR is stale because it has been open more than 45 days with no activity. Remove stale label or comment if it is still useful. In any case a PR will be automatically closed." + close-issue-message: "This issue was closed because it has been stalled for 20 days with no activity." + days-before-stale: 30 + days-before-close: 20 + days-before-pr-close: -1 + any-of-labels: "awaiting-changes,awaiting-feedback" + exempt-issue-labels: "WIP" + exempt-pr-labels: "WIP" + repo-token: ${{ secrets.GITHUB_TOKEN }}