fixing panel tables
Signed-off-by: Rogério Peixoto <rogerio.peixoto@checkmarx.com>
This commit is contained in:
@ -16,7 +16,7 @@ function createComment(results) {
|
||||
|
||||
message += "<table>\n";
|
||||
message += "<tr></tr>\n";
|
||||
message += "<tr><td>\n";
|
||||
message += "<tr><td>\n\n";
|
||||
|
||||
message += "| | Category | Results |\n";
|
||||
message += "| --- |--- | --- |\n";
|
||||
@ -28,7 +28,7 @@ function createComment(results) {
|
||||
}
|
||||
message += `|  | TOTAL | ${results['total_counter']} |`;
|
||||
|
||||
message += "\n</td><td>\n";
|
||||
message += "\n\n</td><td>\n\n";
|
||||
|
||||
message += "| Metric | Values |\n";
|
||||
message += "| --- | --- |\n";
|
||||
@ -39,7 +39,7 @@ function createComment(results) {
|
||||
message += "| Queries failed to execute | " + results['queries_failed_to_execute'] + "\n";
|
||||
message += "| Execution time | " + moment(results['end']).diff(moment(results['start']), 'seconds') + "s\n";
|
||||
|
||||
message += "\n</td></tr>\n</table>\n";
|
||||
message += "\n</td></tr>\n</table>\n\n";
|
||||
|
||||
return message;
|
||||
}
|
||||
@ -55,7 +55,7 @@ async function postPRComment(results, repo, prNumber, octokit) {
|
||||
const comment = comments.find((comment) => {
|
||||
return (
|
||||
comment.user.login === "github-actions[bot]" &&
|
||||
comment.body.startsWith("\n")
|
||||
comment.body.startsWith("
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user