From f16ecec382ac18e4ebd9020ac8c99ef40a8cb5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Sat, 10 Feb 2024 23:39:21 +0100 Subject: [PATCH] chore: output dependency metadata for all artifacts in check run (#87) --- lib/github.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/github.js b/lib/github.js index 4aacf62..7a48fe3 100644 --- a/lib/github.js +++ b/lib/github.js @@ -39,7 +39,7 @@ export default { createStatus: async (owner, repo, head_sha, entries) => { const github = await getRestClient(); - const metadata = `
<dependency> <groupId>${entries[0].groupId}</groupId> <artifactId>${entries[0].artifactId}</artifactId> <version>${entries[0].version}</version> </dependency>` + const metadata = entries.map(entry => `<dependency> <groupId>${entry.groupId}</groupId> <artifactId>${entry.artifactId}</artifactId> <version>${entry.version}</version> </dependency>`).join(" ") return github.rest.checks.create({ owner, @@ -52,7 +52,7 @@ export default { output: { title: `Deployed version ${entries[0].version} to Incrementals`, summary: entries.map(entry => `- [${entry.artifactId}](${entry.url})`).join("\n"), - text: metadata + text: `
${metadata}` } }); }