Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 18, 2024
1 parent 8037715 commit 8ae19d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45761,9 +45761,7 @@ async function main() {
// Comment on the PR with the summary, if requested.
if (inputs.pr_comment) {
const commentID = await findCommentOnPR(lib_github.context, github);
await commentOnPR(lib_github.context, github, commentID, `The latest Buf updates to your PR.` +
`Results from workflow <a href="${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}"><b>${lib_github.context.workflow} / ${lib_github.context.job} (pull request)</b></a>.` +
`\n\n${summary.stringify()}`);
await commentOnPR(lib_github.context, github, commentID, `The latest Buf updates to your PR. Results from workflow <a href="${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}">${lib_github.context.workflow} / ${lib_github.context.job} (pull request)</a>.\n\n${summary.stringify()}`);
}
// Write the summary to a file defined by GITHUB_STEP_SUMMARY.
// NB: Write empties the buffer and must be after the comment.
Expand Down
4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ async function main() {
context,
github,
commentID,
`The latest Buf updates to your PR.` +
`Results from workflow <a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}"><b>${context.workflow} / ${context.job} (pull request)</b></a>.` +
`\n\n${summary.stringify()}`,
`The latest Buf updates to your PR. Results from workflow <a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}">${context.workflow} / ${context.job} (pull request)</a>.\n\n${summary.stringify()}`,
);
}
// Write the summary to a file defined by GITHUB_STEP_SUMMARY.
Expand Down

0 comments on commit 8ae19d0

Please sign in to comment.