From 774ea17446619f122897e5a59a263b5e77248aad Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sat, 7 Sep 2024 11:09:03 +0200 Subject: [PATCH] Replace stale bot with stale action --- .github/stale.yml | 23 ----------------------- .github/workflows/stale-issues.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 619c20ccd9b..00000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Number of days of inactivity before an issue becomes stale (two month) -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed (another six month) -daysUntilClose: 180 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - - "PR pending" -# Only issues with all of these labels are checked if stale. -onlyLabels: - - "awaiting feedback" -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false -# Limit to only `issues`` -only: issues diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 00000000000..3155e401c40 --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,24 @@ +name: 'Stale issues' +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 60 + days-before-issue-close: 180 + days-before-pr-stale: -1 + days-before-pr-close: -1 + only-labels: 'awaiting feedback' + stale-issue-label: 'stale' + exempt-issue-labels: 'pinned,security,PR pending' + stale-issue-message: >- + This issue has been automatically marked as stale because it has not had recent activity. + It will be closed if no further activity occurs. Thank you for your contributions.