Unverified Commit 79414b4f authored by daz's avatar daz
Browse files

Add link to workflow run from PR comment

Fixes #11
parent e9c65b9f
Loading
Loading
Loading
Loading
+3 −1
Changes for sources/src/job-summary.ts: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -41,7 +41,9 @@ async function addPRComment(jobSummary: string): Promise<void> {
    core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`)

    const prComment = `<h3>Job Summary for Gradle</h3>
<h5>${github.context.workflow} :: <em>${github.context.job}</em></h5>
<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}" target="_blank">
<h5>${context.workflow} :: <em>${context.job}</em></h5>
</a>

${jobSummary}`