From 49f21ffd7a7094f37bbaceee3bb4f7e5bed3a7f1 Mon Sep 17 00:00:00 2001 From: Misha Kaletsky Date: Mon, 19 Aug 2024 12:18:45 -0400 Subject: [PATCH] deps: dedupe updates list --- .github/workflows/deps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml index cf8b35d..cfc1552 100644 --- a/.github/workflows/deps.yml +++ b/.github/workflows/deps.yml @@ -100,7 +100,7 @@ jobs: .filter(Boolean) .map(match => match[1]) - const depsSummary = updatedDeps + const depsSummary = [...new Set(updatedDeps)] .slice(0, 4) .map((dep, i, {length}) => { if (i === 3 && updatedDeps.length > 4) return `and ${updatedDeps.length - 3} more` @@ -108,7 +108,7 @@ jobs: return dep }) .join(', ').replace(', and', ' and') - const prTitle = `renovate: update ${updatedDeps.length === 1 ? 'dependency' : 'dependencies'} ${depsSummary} 🌲` + const prTitle = `renovate: update ${depsSummary} 🌲` console.log({prTitle, updateCommits}) const prBody = [