From 5983b2e9dee6907ed331fa5ca80b8395ba26bbab Mon Sep 17 00:00:00 2001 From: Jonas L Date: Sat, 4 Mar 2023 16:00:30 +0100 Subject: [PATCH] ci: replace stale bot with stale action (#2421) Fixes #2420 --- .github/stale.yml | 57 ------------------------------ .github/workflows/housekeeping.yml | 38 ++++++++++++++++++++ 2 files changed, 38 insertions(+), 57 deletions(-) delete mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index cad67668f..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,57 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale (5 months) -daysUntilStale: 150 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. (1 month) -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: 30 - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - "status: pinned" - - "status: maybe later" - - "security" - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: false - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: true - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: true - -# Label to use when marking as stale -staleLabel: "status: stalled" - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - activity in the last 5 months. It will be closed if no activity occurs in - the next month. - - Please chat to us on [discourse](https://discourse.libretime.org/) or - ask for help on our [chat](https://chat.libretime.org/) if you have any - questions or need further support with getting this issue resolved. - - You may also label an issue as *pinned* if you would like to make sure - that it does not get closed by this bot. - -# Comment to post when removing the stale label. -# unmarkComment: > -# Your comment here. - -# Comment to post when closing a stale Issue or Pull Request. -closeComment: > - This issue has been automatically closed after is was marked as stale and - did not receive any further inputs. - - Feel free to let us know on [discourse](https://discourse.libretime.org/) or - ask for help on our [chat](https://chat.libretime.org/) if you feel this - issue should not have been closed. - - Thank you for your contributions. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 diff --git a/.github/workflows/housekeeping.yml b/.github/workflows/housekeeping.yml index 2de9af618..babd89860 100644 --- a/.github/workflows/housekeeping.yml +++ b/.github/workflows/housekeeping.yml @@ -10,6 +10,9 @@ on: required: true default: "5" +permissions: + issues: write + jobs: find_closed_references: if: github.repository_owner == 'libretime' @@ -65,3 +68,38 @@ jobs: fail: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + find_stale_issues: + if: github.repository_owner == 'libretime' + name: Find stale issues + + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v7 + with: + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + activity in the last 5 months. It will be closed if no activity occurs in + the next month. + + Please chat to us on the [forum](https://discourse.libretime.org/) or + ask for help on our [chat](https://chat.libretime.org/) if you have any + questions or need further support with getting this issue resolved. + + You may also label an issue as *pinned* if you would like to make sure + that it does not get closed by this bot. + close-issue-message: > + This issue has been automatically closed after is was marked as stale and + did not receive any further inputs. + + Feel free to let us know on the [forum](https://discourse.libretime.org/) or + ask for help on our [chat](https://chat.libretime.org/) if you feel this + issue should not have been closed. + + Thank you for your contributions. + days-before-issue-stale: 150 + days-before-issue-close: 30 + stale-issue-label: "status: stalled" + exempt-issue-labels: "status: pinned,status: maybe later,security" + exempt-issue-assignees: true + exempt-issue-milestones: true