Skip to content

Commit 2b0b7a7

Browse files
authored
chore: nicer PR comments (#1883)
Assisted-by: Cursor Signed-off-by: David Festal <dfestal@redhat.com>
1 parent 8be175a commit 2b0b7a7

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/pr-actions.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,17 +368,19 @@ jobs:
368368
const publishedExports = core.getMultilineInput('published_exports');
369369
const failedExports = core.getMultilineInput('failed_exports');
370370
if (publishedExports.length + failedExports.length > 0) {
371-
body += '\n\n#### Publishing process\n';
372-
if (publishedExports.length > 0) {
373-
body = `${body}\n- Published container images:`;
374-
publishedExports.forEach(line => {
375-
body = `${body}\n - ${line}`;
376-
});
377-
}
378371
if (failedExports.length > 0) {
379-
body = `${body}\n- Plugins failed during export or container image publishing:`;
372+
body += '\n\n#### Publishing process\n';
373+
body += `❌ Plugins with errors during export or container image publishing:`;
380374
failedExports.forEach(line => {
381-
body = `${body}\n - ${line}`;
375+
body += `\n - ${line}`;
376+
});
377+
} else {
378+
body += '\n\n#### Publishing process\n✅ Finished successfully.';
379+
}
380+
if (publishedExports.length > 0) {
381+
body += `\n- Published container images:`;
382+
publishedExports.forEach(line => {
383+
body += `\n - ${line}`;
382384
});
383385
}
384386
}

0 commit comments

Comments
 (0)