From e9170335e9de129b2c652f4aacbfc2dfeb5d0637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Thu, 22 Feb 2024 22:38:10 +0100 Subject: [PATCH] improved stale action workflow --- .github/workflows/stale.yml | 38 +++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index eabc32891..9e70ab55a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,34 +1,40 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/actions/stale -name: Mark stale issues and pull requests +name: Mark and Manage Stale Issues and Pull Requests on: schedule: - - cron: '36 6 * * *' + - cron: '30 7 * * *' jobs: stale: - runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 30 - days-before-close: 30 - 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 30 days.' - stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.' + days-before-close: 14 + stale-issue-message: > + 📌 **This issue has been marked as stale because it has not had activity in the past 30 days.** + + To keep it open, please respond to this message or add new information. Otherwise, this will be closed in 14 days. + + Thank you for your contributions! + stale-pr-message: > + 📌 **This pull request has been marked as stale because it has not had activity in the past 30 days.** + + Please update the PR or comment to keep it active. Otherwise, this will be closed in 14 days. + + We appreciate your contribution! stale-issue-label: 'stale' - stale-pr-label: 'stale' + stale-pr-label: 'stale, reviewer-needed' exempt-issue-labels: 'tracking' - exampt-pr-lables: 'tracking' - close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity.' - close-pr-message: 'This pull request was closed because it has been stalled for 30 days with no activity.' + exempt-pr-labels: 'tracking' + close-issue-message: 'This issue was closed due to inactivity for 14 days. Feel free to reopen it if you think it was an error or if there's new information or progress.' + close-pr-message: 'This pull request was closed due to inactivity for 14 days. Please reopen it if you think it was an error or if you wish to continue the contribution.' exempt-all-milestones: true + exempt-all-assignees: true + exempt-draft-prs: true