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

Commit

Permalink
do not submit review when it's disabled (#434)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by OSS CodeRabbit
-->
### Summary by CodeRabbit

## Release Notes

- **New Feature**: Enhanced the review submission process in
`src/review.ts`. The update includes a final summary comment before
submitting the review, improving clarity and communication.

> 🎉 Here's to the code that's ever so bright,
> 
> A new line added, enhancing our might.
> 
> With summaries clear, we take flight,
> 
> In the realm of code, it's a delightful sight! 🚀
<!-- end of auto-generated comment: release notes by OSS CodeRabbit -->
  • Loading branch information
harjotgill authored Aug 12, 2023
1 parent a59e96c commit e6056fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
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

0 comments on commit e6056fd

Please sign in to comment.