Skip to content

Commit

Permalink
Reword link
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 18, 2024
1 parent 9ef214f commit 7170670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45761,7 +45761,9 @@ 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 from workflow ${lib_github.context.workflow}, job ${lib_github.context.job}.\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}"><b>${lib_github.context.workflow} / ${lib_github.context} (pull request)</b></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 All @@ -45785,15 +45787,13 @@ function createSummary(inputs, steps, moduleNames) {
{ data: "Format", header: true },
{ data: "Lint", header: true },
{ data: "Breaking", header: true },
{ data: "Run", header: true },
{ data: "Updated (UTC)", header: true },
],
[
message(steps.build),
message(steps.format),
message(steps.lint),
message(steps.breaking),
`<a href="${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}">view</a>`,
new Date().toLocaleString("en-US", {
day: "numeric",
month: "short",
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ async function main() {
context,
github,
commentID,
`The latest buf updates from workflow ${context.workflow}, job ${context.job}.\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}"><b>${context.workflow} / ${context} (pull request)</b></a>.` +
`\n\n${summary.stringify()}`,
);
}
// Write the summary to a file defined by GITHUB_STEP_SUMMARY.
Expand Down Expand Up @@ -101,15 +103,13 @@ function createSummary(
{ data: "Format", header: true },
{ data: "Lint", header: true },
{ data: "Breaking", header: true },
{ data: "Run", header: true },
{ data: "Updated (UTC)", header: true },
],
[
message(steps.build),
message(steps.format),
message(steps.lint),
message(steps.breaking),
`<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}">view</a>`,
new Date().toLocaleString("en-US", {
day: "numeric",
month: "short",
Expand Down

0 comments on commit 7170670

Please sign in to comment.