From b05ac018421ad3bfe30144598f9a9918f80c7ba0 Mon Sep 17 00:00:00 2001 From: Junwoo Hwang Date: Fri, 30 Jun 2023 17:18:43 +0200 Subject: [PATCH] Stale action re-configure (still just debug mode) (#21783) * Remove old stale bot yaml file * Remove slack svg file (unused) * Stale action: Only apply stale label, and no other actions Respecting the opinion on https://github.com/PX4/PX4-Autopilot/commit/fa9ac6ecf651232f3105ca124a2d2c54ab8620d0, it seems reasonable to disable commenting feature, and just keep the action only applying the `stale` label. This will reduce the noise / email spams / ping pong fight with the stale bot (Action) --- .github/slack.svg | 24 ------------------------ .github/stale.yml | 15 --------------- .github/workflows/stale.yml | 15 +++++++-------- 3 files changed, 7 insertions(+), 47 deletions(-) delete mode 100644 .github/slack.svg delete mode 100644 .github/stale.yml diff --git a/.github/slack.svg b/.github/slack.svg deleted file mode 100644 index 2b0fbae4aa97..000000000000 --- a/.github/slack.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - slack - slack - Join us! - Join us! - - - diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index f20bbd3977b2..000000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 90 -# Number of days of inactivity before a stale issue is closed, or `false` to disable -daysUntilClose: false -# Issues with these labels will never be considered stale -exemptLabels: - - pinned -# 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. 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 index 7cbba4b282fb..e5e71fa7bf3e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,4 +1,4 @@ -name: 'Close stale issues and PRs' +name: 'Handle stale issues and PRs' on: schedule: - cron: '30 1 * * *' @@ -9,12 +9,11 @@ jobs: steps: - uses: actions/stale@v4.1.1 with: - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' - stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' - close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' - close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.' days-before-issue-stale: 30 - days-before-pr-stale: 45 - days-before-issue-close: 5 - days-before-pr-close: 10 + stale-issue-label: 'stale' + + days-before-pr-stale: 30 + stale-pr-label: 'stale' + + remove-stale-when-updated: true debug-only: true