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

Commit fa99b3f

Browse files
committed
do not submit review when it's disabled
1 parent a59e96c commit fa99b3f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dist/index.js

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

src/review.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -730,17 +730,17 @@ ${
730730
existingCommitIdsBlock,
731731
context.payload.pull_request.head.sha
732732
)}`
733+
734+
// post the review
735+
await commenter.submitReview(
736+
context.payload.pull_request.number,
737+
commits[commits.length - 1].sha,
738+
statusMsg
739+
)
733740
}
734741

735742
// post the final summary comment
736743
await commenter.comment(`${summarizeComment}`, SUMMARIZE_TAG, 'replace')
737-
738-
// post the review
739-
await commenter.submitReview(
740-
context.payload.pull_request.number,
741-
commits[commits.length - 1].sha,
742-
statusMsg
743-
)
744744
}
745745

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

0 commit comments

Comments
 (0)