From 6d4ced29237f7a953cf479a3fea5b15f3715c638 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Tue, 27 Jun 2023 15:12:51 +0200 Subject: [PATCH 1/3] chore: replace stale bot with GH actions workflow Signed-off-by: Moritz Wiesinger --- .github/stale.yml | 26 -------------------------- .github/workflows/stale.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 26 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 1411ead30c..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - "pinned" - - "security" - - "future" - - "help wanted" - - "integrations" - - "known issue" - - "known-limitation" - - "Epic" - - "area:security" -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: true -# 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: > - This issue has been automatically marked as stale because it has not had - recent activity. 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: false diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..a2a5d7ebd3 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: "Handle stale issues/PRs" + +on: + schedule: + - cron: "0 3 * * *" + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + days-before-stale: 60 + days-before-close: 7 + exempt-issue-labels: "pinned,security,future,help wanted,integrations,known issue,known-limitation,Epic,area:security" + exempt-pr-labels: "pinned,security,future,help wanted,integrations,known issue,known-limitation,Epic,area:security" + exempt-all-milestones: true + stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." + stale-pr-message: "This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." From ed17e1d1730d9b80536a0b73330819b8649e4f94 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Tue, 27 Jun 2023 15:20:46 +0200 Subject: [PATCH 2/3] fix yaml linter errors Signed-off-by: Moritz Wiesinger --- .github/workflows/stale.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a2a5d7ebd3..521e03c399 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,5 +16,9 @@ jobs: exempt-issue-labels: "pinned,security,future,help wanted,integrations,known issue,known-limitation,Epic,area:security" exempt-pr-labels: "pinned,security,future,help wanted,integrations,known issue,known-limitation,Epic,area:security" exempt-all-milestones: true - stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." - stale-pr-message: "This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." + stale-issue-message: | + This issue has been automatically marked as stale because it has not had recent activity. It will be + closed if no further activity occurs. Thank you for your contributions. + stale-pr-message: | + This issue has been automatically marked as stale because it has not had recent activity. It will be + closed if no further activity occurs. Thank you for your contributions. From 2179c057942cd0c8f50ac4f0373d2f7f136b4191 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Tue, 27 Jun 2023 15:21:31 +0200 Subject: [PATCH 3/3] fix yaml linter errors Signed-off-by: Moritz Wiesinger --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 521e03c399..f7c3fd219f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -17,8 +17,8 @@ jobs: exempt-pr-labels: "pinned,security,future,help wanted,integrations,known issue,known-limitation,Epic,area:security" exempt-all-milestones: true stale-issue-message: | - This issue has been automatically marked as stale because it has not had recent activity. It will be + This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. stale-pr-message: | - This issue has been automatically marked as stale because it has not had recent activity. It will be + This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.