Skip to content

Commit

Permalink
Bump again
Browse files Browse the repository at this point in the history
  • Loading branch information
ankrgyl committed Apr 28, 2024
1 parent c617c72 commit 9712c03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function upsertComment() {

const prs = await inferPullRequestsFromContext(octokit);

const commentBody = `Thank you for your pull request x2!`;
const commentBody = `Thank you for your pull request x3!`;

await Promise.all(
prs.map(pr => createOrUpdateComment(octokit, pr, commentBody))
Expand All @@ -32,14 +32,14 @@ const createOrUpdateComment = async (
const commentKey = `<!-- braintrust_bot_comment -->`;
const comment = await findComment(octokit, pullRequest, commentKey);
if (!comment) {
core.info(`Key not found in #${pullRequest.issue_number}`);
core.debug(`Key not found in #${pullRequest.issue_number}`);
const { data: created } = await octokit.rest.issues.createComment({
owner: pullRequest.owner,
repo: pullRequest.repo,
issue_number: pullRequest.issue_number,
body: `${body}\n${commentKey}`
});
core.info(`Created a comment ${created.html_url}`);
core.debug(`Created a comment ${created.html_url}`);
return;
}

Expand All @@ -49,7 +49,7 @@ const createOrUpdateComment = async (
comment_id: comment.id,
body
});
core.info(`Updated the comment ${updated.html_url}`);
core.debug(`Updated the comment ${updated.html_url}`);
};

type Comment = {
Expand Down

0 comments on commit 9712c03

Please sign in to comment.