Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
roseline124 committed Jun 26, 2024
1 parent 921ebb9 commit d5403a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40508,8 +40508,8 @@ async function handleCreateComment(event, reviewers) {
const commentAuthorGithubName = comment.user.login;
const owner = github.context.repo.owner;
const repo = github.context.repo.repo;
core.info(`comment number: ${comment.id}, issue number: ${issue?.number}, pr number: ${pull_request?.number}`);
const prNumber = pull_request.number;
core.info(`comment number: ${comment.id}, issue number: ${issue?.number}, pr number: ${pull_request.number}`);
// GitHub Actions의 GITHUB_TOKEN으로 작성된 코멘트 제외
if (commentAuthorGithubName === "github-actions[bot]") {
core.info("Skipping comment created by GitHub Actions bot.");
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/handlers/handle-create-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export async function handleCreateComment(event: any, reviewers: Reviewers) {
const commentAuthorGithubName = comment.user.login;
const owner = github.context.repo.owner;
const repo = github.context.repo.repo;
const prNumber = pull_request.number;

core.info(
`comment number: ${comment.id}, issue number: ${issue?.number}, pr number: ${pull_request.number}`
`comment number: ${comment.id}, issue number: ${issue?.number}, pr number: ${pull_request?.number}`
);
const prNumber = pull_request.number;

// GitHub Actions의 GITHUB_TOKEN으로 작성된 코멘트 제외
if (commentAuthorGithubName === "github-actions[bot]") {
core.info("Skipping comment created by GitHub Actions bot.");
Expand Down

0 comments on commit d5403a4

Please sign in to comment.