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

Commit 39d68ca

Browse files
authored
review entire PR when triggered manually (#190)
1 parent 0c69ed0 commit 39d68ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/review.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,10 @@ ${review.comment}`
682682
}
683683

684684
let files_and_changes_for_review = files_and_changes
685-
if (highest_reviewed_commit_id === '') {
685+
if (
686+
highest_reviewed_commit_id === '' ||
687+
highest_reviewed_commit_id === context.payload.pull_request.head.sha
688+
) {
686689
core.info(
687690
`Will review from the base commit: ${context.payload.pull_request.base.sha}`
688691
)

0 commit comments

Comments
 (0)