From 9b73a315314d4c27214d16c68eee79459028ea57 Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Tue, 29 Apr 2025 01:24:25 +0200 Subject: [PATCH] change deprecated bot with action --- .github/stale.yml | 26 -------------------------- .github/workflows/stale.yaml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 26 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yaml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 381a372..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 14 - -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 30 - -# Issues with these labels will never be considered stale -# exemptLabels: -# - pinned -# - security - -# Only issues or pull requests with all of these labels are check if stale. -onlyLabels: - - "Status: Abandoned" - - "Type: Question" - -# Label to use when marking 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 - activity in the past 2 weeks. 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: This issue is being closed after 30 days of inactivity. Thank you. \ No newline at end of file diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..636d20d --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,21 @@ +name: 'Close stale issues and PR' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + only-labels: "Status: Abandoned, Type: Question" + stale-issue-label: stale + stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 90 days.' + close-issue-message: 'This issue was closed because it has been stalled for 90 days with no activity.' + days-before-stale: 14 + days-before-close: 90 + days-before-pr-stale: -1 + days-before-pr-close: -1 + stale-pr-message: '' + close-pr-message: '' \ No newline at end of file