File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ export async function processReview(
8181 const inlineComments = comments . filter ( c => c . type === 'inline' ) ;
8282 const generalComments = comments . filter ( c => c . type === 'general' ) ;
8383
84+ // TODO(sayans): GitHub API allows <= 30 comments per review, so we need to add splitting logic if there are > 30 comments
85+
8486 console . log ( `📝 Collected ${ inlineComments . length } inline comments and ${ generalComments . length } general comments` ) ;
8587
8688 // Create review summary from general comments
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ import { getCollector } from '../comment-collector.js';
22
33export interface LeaveGeneralCommentArgs {
44 message : string ;
5- owner : string ;
6- repo : string ;
7- pr_number : number ;
85}
96
107export async function leaveGeneralComment (
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ import { getCollector } from '../comment-collector.js';
22
33export interface LeaveInlineCommentArgs {
44 message : string ;
5- owner : string ;
6- repo : string ;
7- pr_number : number ;
85 path : string ;
96 line : number ;
107 commit_sha ?: string ;
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ const ownerRepoPr = z.object({
1111} ) ;
1212
1313// Schema definitions
14- const LeaveGeneralCommentArgsSchema = ownerRepoPr . extend ( {
14+ const LeaveGeneralCommentArgsSchema = z . object ( {
1515 message : z . string ( ) ,
1616} ) ;
1717
18- const LeaveInlineCommentArgsSchema = ownerRepoPr . extend ( {
18+ const LeaveInlineCommentArgsSchema = z . object ( {
1919 message : z . string ( ) ,
2020 path : z . string ( ) ,
2121 line : z . number ( ) ,
You can’t perform that action at this time.
0 commit comments