From ed5f0c135f89fa3da6a4de8f3e33fdc857e2c9d6 Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com> Date: Wed, 20 May 2026 16:19:39 -0500 Subject: [PATCH] Improving stale issue workflow (#45767) Refactor stale issue formatting to use HTML lists for improved rendering in GitHub Actions summary; update workflow dependencies to latest versions. Example run (see summary): https://github.com/fleetdm/fleet/actions/runs/26101161627 **Related issue:** Resolves #45700 ## Summary by CodeRabbit * **Chores** * Updated GitHub Actions and automation dependencies to latest versions * Improved stale issue management workflow formatting and logic [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/fleetdm/fleet/pull/45767?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) --- .github/scripts/stale-fleetie-issues.js | 47 ++++++++----------- .../close-stale-fleetie-initiated-issues.yml | 8 ++-- .../test-stale-fleetie-issue-scripts.yml | 6 +-- 3 files changed, 26 insertions(+), 35 deletions(-) diff --git a/.github/scripts/stale-fleetie-issues.js b/.github/scripts/stale-fleetie-issues.js index b789811043..d9a26fc78e 100644 --- a/.github/scripts/stale-fleetie-issues.js +++ b/.github/scripts/stale-fleetie-issues.js @@ -314,23 +314,17 @@ async function run({ github, context, core }) { } } - const fmt = (list) => - list.length - ? list - .map( - (e) => - `- [#${e.number}](${e.url}) by @${ - e.author - } (idle ${e.idleDays.toFixed(1)}d)` - ) - .join("\n") - : "_none_"; - const fmtErrors = (list) => - list.length - ? list.map((e) => `- #${e.number} (${e.phase}): ${e.message}`).join("\n") - : "_none_"; + // Each entry is an HTML
  • so it renders correctly inside