Skip to content

Commit

Permalink
fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
atlowChemi committed Feb 28, 2023
1 parent 768130a commit 11f508d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13989,7 +13989,6 @@ async function publishCommentOnPullRequest(token, { accumulatedResult, testResul
if (!pullRequest) {
return;
}
console.log(pullRequest);
const prNumber = pullRequest.number;
core4.info(`\u2139\uFE0F - Got PR number ${prNumber} with SHA: ${headSha}`);
const octokit = github2.getOctokit(token);
Expand Down Expand Up @@ -14026,7 +14025,7 @@ async function publishCommentOnPullRequest(token, { accumulatedResult, testResul
};
const tableHTML = `<table>${table.map(tableMapper).join("")}</table>`;
const title = `<h1 id="testim-junit-reporter-msg">Test Result Summary ${conclusion === "success" ? "\u2705" : "\u274C"}</h1>`;
const seeFullDetailsLink = `<a href="${pullRequest.html_url}/actions/runs/${github2.context.runId}">See full run details</a>.`;
const seeFullDetailsLink = `<a href="${pullRequest.head.repo.html_url}/actions/runs/${github2.context.runId}">See full run details</a>.`;
const summary2 = `Parsed <b><code>${testResults.length}</code></b> JUnit files, and has ended with status <b><code>${conclusion}</code></b> ${seeFullDetailsLink}`;
const body = `${title}<br />${summary2}<br /><br />${tableHTML}`;
if (comment_id) {
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/messageBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export async function publishCommentOnPullRequest(token: string, { accumulatedRe
};
const tableHTML = `<table>${table.map(tableMapper).join('')}</table>`;
const title = `<h1 id="testim-junit-reporter-msg">Test Result Summary ${conclusion === 'success' ? '✅' : '❌'}</h1>`;
const seeFullDetailsLink = `<a href="${pullRequest.html_url}/actions/runs/${github.context.runId}">See full run details</a>.`;
const seeFullDetailsLink = `<a href="${pullRequest.head.repo.html_url}/actions/runs/${github.context.runId}">See full run details</a>.`;
const summary = `Parsed <b><code>${testResults.length}</code></b> JUnit files, and has ended with status <b><code>${conclusion}</code></b> ${seeFullDetailsLink}`;

const body = `${title}<br />${summary}<br /><br />${tableHTML}`;
Expand Down

0 comments on commit 11f508d

Please sign in to comment.