From 4cedf89e51d0a1f796daa7a2bf4f4fb442ad8970 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 3 Sep 2022 09:17:04 +0400 Subject: [PATCH] Migrate from stale app to stale action It doesn't seem to work for multiple months --- .github/stale.yml | 21 --------------------- .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 21 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 40a568cf2..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 180 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 30 -# Issues with these labels will never be considered stale -exemptLabels: [ "enhancement" ] -# 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: | - Hey there! - - This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own. - - Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue. - - Thanks! -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false -# Process only issues -only: issues diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..222963524 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v5 + with: + stale-issue-message: | + Hey there! + + This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own. + + Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue. + + Thanks! + stale-issue-label: 'stale' + exempt-issue-labels: 'enhancement' + days-before-stale: 180 + days-before-close: 30