Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

do not submit review when it's disabled #434

Merged
merged 1 commit into from
Aug 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/index.js

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

14 changes: 7 additions & 7 deletions src/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,17 +730,17 @@ ${
existingCommitIdsBlock,
context.payload.pull_request.head.sha
)}`

// post the review
await commenter.submitReview(
context.payload.pull_request.number,
commits[commits.length - 1].sha,
statusMsg
)
}

// post the final summary comment
await commenter.comment(`${summarizeComment}`, SUMMARIZE_TAG, 'replace')

// post the review
await commenter.submitReview(
context.payload.pull_request.number,
commits[commits.length - 1].sha,
statusMsg
)
}

const splitPatch = (patch: string | null | undefined): string[] => {
Expand Down