From 848fe55989547a0d78d088cdfece12f301e4587e Mon Sep 17 00:00:00 2001 From: caroline-suse-rancher Date: Fri, 19 Jan 2024 15:58:06 -0500 Subject: [PATCH 1/3] Adding yml for new stale action This PR adds a new github stale action. This will replace our previous (and now deprecated) stalebot. Two notable differences are that issues will now go stale after 45 days of inactivity, and the most commonly used priority labels have been added for exemption. --- .github/workflows/stale.yml | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 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..9ee9c3c00d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,54 @@ +name: Stalebot +on: + schedule: + - cron: '0 20 * * *' + workflow_dispatch: +permissions: + contents: write + issues: write +jobs: + stalebot: + runs-on: ubuntu-latest + steps: + - name: Close Stale Issues + uses: actions/stale@v9.0.0 + with: + # ensure PRs are exempt + days-before-pr-stale: -1 + day-before-pr-closed: -1 + + days-before-issue-stale: 45 + days-before-issue-close: 14 + stale-issue-label: status/stale + exempt-all-milestones: true + exempt-all-assignees: true + exempt-issue-labels: + internal, + kind/bug, + kind/bug-qa, + kind/task, + kind/feature, + kind/enhancement, + kind/design, + kind/ci-improvements, + kind/performance, + kind/flaky-test, + kind/documentation, + kind/epic, + kind/upstream-issue, + priority/backlog, + priority/critical-urgent, + priority/important-longterm, + priority/important-soon, + priority/low, + priority/medium, + priority/high, + priority/urgent, + stale-issue-message: > + This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) + for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the + issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the + latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. + + + From 2f27d37b0c595bf639ca1410a071a3508f096795 Mon Sep 17 00:00:00 2001 From: caroline-suse-rancher Date: Fri, 19 Jan 2024 15:59:12 -0500 Subject: [PATCH 2/3] get rid of whitespace --- .github/workflows/stale.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9ee9c3c00d..d4f78c6329 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -49,6 +49,3 @@ jobs: for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. - - - From 89d5c3fabbeeb0464da3d4e139e052d307453667 Mon Sep 17 00:00:00 2001 From: caroline-suse-rancher Date: Fri, 19 Jan 2024 15:59:43 -0500 Subject: [PATCH 3/3] Delete old stalebot deleting .github/stale.yml --- .github/stale.yml | 57 ----------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 9d741660d5..0000000000 --- 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 -daysUntilStale: 180 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: 14 - -# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) -onlyLabels: [] - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - internal - - kind/bug - - kind/bug-qa - - kind/task - - kind/feature - - kind/enhancement - - kind/design - - kind/ci-improvements - - kind/performance - - kind/flaky-test - - kind/documentation - - kind/epic - - kind/upstream-issue - - priority/backlog - - priority/critical-urgent - - priority/important-longterm - - priority/important-soon - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: true - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: true - -# Label to use when marking as stale -staleLabel: status/stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) - for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the - issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the - latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - -# Limit to only `issues` -only: issues -