From 9ac8dbeeac119d3ba5e483351d355d0e59d6408b Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 13 May 2024 17:46:14 +0200 Subject: [PATCH] dependabotNudge: cut at 50 messages, and add a cont --- .github/workflows/dependabot-nudge.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-nudge.yml b/.github/workflows/dependabot-nudge.yml index f60f4cad..ea27f774 100644 --- a/.github/workflows/dependabot-nudge.yml +++ b/.github/workflows/dependabot-nudge.yml @@ -44,7 +44,12 @@ jobs: minlevel = 'high'; } - const messages = await dependabotNudge({debug, org: process.env.GITHUB_REPOSITORY_OWNER, github: github, minlevel: minlevel, githubToSlack: githubToSlack}); + let messages = await dependabotNudge({debug, org: process.env.GITHUB_REPOSITORY_OWNER, github: github, minlevel: minlevel, githubToSlack: githubToSlack}); + + if (messages.length > 50) { + messages = messages.slice(0, 49); + messages.push('... and more!'); + } for (const message of messages) { try {