Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 5, 2024
1 parent fbc09c1 commit 1791013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45610,8 +45610,7 @@ async function downloadBuf(version) {
const commentTag = "<!-- Buf results -->";
// findCommentOnPR finds the comment on the PR that contains the Buf results.
// If the comment is found, it returns the comment ID. If the comment is not
// found, it returns undefined. On failure, it returns undefined but does not
// throw an error.
// found, it returns undefined.
async function findCommentOnPR(context, github) {
const { owner, repo } = context.repo;
const prNumber = context.payload.pull_request?.number;
Expand All @@ -45633,8 +45632,7 @@ async function findCommentOnPR(context, github) {
}
// commentOnPR comments on the PR with the summary of the Buf results. The
// summary should be a markdown formatted string. This function returns true if
// the comment was successfully created or updated. On failure, it returns
// false but does not throw an error.
// the comment was successfully created or updated.
async function commentOnPR(context, github, commentID, body) {
const { owner, repo } = context.repo;
const prNumber = context.payload.pull_request?.number;
Expand Down
6 changes: 2 additions & 4 deletions src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ const commentTag = "<!-- Buf results -->";

// findCommentOnPR finds the comment on the PR that contains the Buf results.
// If the comment is found, it returns the comment ID. If the comment is not
// found, it returns undefined. On failure, it returns undefined but does not
// throw an error.
// found, it returns undefined.
export async function findCommentOnPR(
context: Context,
github: InstanceType<typeof GitHub>,
Expand Down Expand Up @@ -51,8 +50,7 @@ export async function findCommentOnPR(

// commentOnPR comments on the PR with the summary of the Buf results. The
// summary should be a markdown formatted string. This function returns true if
// the comment was successfully created or updated. On failure, it returns
// false but does not throw an error.
// the comment was successfully created or updated.
export async function commentOnPR(
context: Context,
github: InstanceType<typeof GitHub>,
Expand Down

0 comments on commit 1791013

Please sign in to comment.