From 82d948680034bff230a8ce60ed97a3ea674f4b94 Mon Sep 17 00:00:00 2001 From: Mariska <40423138+MariMakes@users.noreply.github.com> Date: Fri, 26 May 2023 15:08:50 +0200 Subject: [PATCH] Introduce a Stale bot Helps with cleaning the issue list and introducing old tickets to the new triage system. --- .github/workflows/stale.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..5dc654e8be --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,36 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '* */12 * * *' + + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + days-before-pr-close: -1 + days-before-stale: 365 + days-before-close: 14 + exempt-issue-labels: 'Status: Triage,Developer Environment :computer:,Status: On Backlog,PR: Community Contribution :crown:,PR: Printer Definitions :factory:,PR: Translations :books:' + stale-issue-label: 'Status: Stale :hourglass:' + labels-to-add-when-unstale: 'Status: Triage' + only-labels: "Type: Bug,Status: Deferred,Status: Won't Fix/Do" + stale-issue-message: | + Hi 👋, + We are cleaning our list of issues to improve our focus. + This bug seems to be older than a year, which is at least three major Cura releases ago. + It also received the label Deferred indicating that we did not have time to work on it back then and haven't found time to work on it since. + + If this is still a problem for you in the current version of Cura, can you please leave a comment? + We will have a fresh set of eyes to look at it. + + If it is not a problem anymore, you don't have to do anything, and this issue will be automatically closed in 14 days. + close-issue-message: | + This issue was closed because it has been inactive for 14 days since being marked as stale. + If you encounter this issue and still experience this to be a problem, you are welcome to make a fresh new issue with an updated description and screenshots. +permissions: + contents: write # only for delete-branch option + issues: write + pull-requests: write