Skip to content

Commit

Permalink
chore: output dependency metadata for all artifacts in check run (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Feb 10, 2024
1 parent 2d592df commit f16ecec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
createStatus: async (owner, repo, head_sha, entries) => {
const github = await getRestClient();

const metadata = `<pre>&#xA;&#60;dependency>&#xA; &#60;groupId>${entries[0].groupId}&#60;/groupId>&#xA; &#60;artifactId>${entries[0].artifactId}&#60;/artifactId>&#xA; &#60;version>${entries[0].version}&#60;/version>&#xA;&#60;/dependency>&#xA;</pre>`
const metadata = entries.map(entry => `&#60;dependency>&#xA; &#60;groupId>${entry.groupId}&#60;/groupId>&#xA; &#60;artifactId>${entry.artifactId}&#60;/artifactId>&#xA; &#60;version>${entry.version}&#60;/version>&#xA;&#60;/dependency>`).join("&#xA;")

return github.rest.checks.create({
owner,
Expand All @@ -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: `<pre>&#xA;${metadata}&#xA;</pre>`
}
});
}
Expand Down

0 comments on commit f16ecec

Please sign in to comment.