Skip to content

Commit

Permalink
Add link to workflow run from PR comment
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
bigdaz committed Feb 11, 2024
1 parent 552bbd3 commit 7db6ca2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/src/job-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`

Expand Down

0 comments on commit 7db6ca2

Please sign in to comment.