@@ -131,13 +131,13 @@ export const closeIssueV2Tool: ToolConfig<CloseIssueParams, any> = {
131131 number : issue . number ,
132132 title : issue . title ,
133133 state : issue . state ,
134- state_reason : issue . state_reason ,
134+ state_reason : issue . state_reason ?? null ,
135135 html_url : issue . html_url ,
136- body : issue . body ,
136+ body : issue . body ?? null ,
137137 user : issue . user ,
138- labels : issue . labels ,
139- assignees : issue . assignees ,
140- closed_at : issue . closed_at ,
138+ labels : issue . labels ?? [ ] ,
139+ assignees : issue . assignees ?? [ ] ,
140+ closed_at : issue . closed_at ?? null ,
141141 created_at : issue . created_at ,
142142 updated_at : issue . updated_at ,
143143 } ,
@@ -149,13 +149,13 @@ export const closeIssueV2Tool: ToolConfig<CloseIssueParams, any> = {
149149 number : { type : 'number' , description : 'Issue number' } ,
150150 title : { type : 'string' , description : 'Issue title' } ,
151151 state : { type : 'string' , description : 'Issue state (closed)' } ,
152- state_reason : { type : 'string' , description : 'Reason for closing' } ,
152+ state_reason : { type : 'string' , description : 'Reason for closing' , optional : true } ,
153153 html_url : { type : 'string' , description : 'GitHub web URL' } ,
154- body : { type : 'string' , description : 'Issue body' } ,
154+ body : { type : 'string' , description : 'Issue body' , optional : true } ,
155155 user : { type : 'json' , description : 'User who created the issue' } ,
156156 labels : { type : 'array' , description : 'Array of label objects' } ,
157157 assignees : { type : 'array' , description : 'Array of assignee objects' } ,
158- closed_at : { type : 'string' , description : 'Close timestamp' } ,
158+ closed_at : { type : 'string' , description : 'Close timestamp' , optional : true } ,
159159 created_at : { type : 'string' , description : 'Creation timestamp' } ,
160160 updated_at : { type : 'string' , description : 'Last update timestamp' } ,
161161 } ,
0 commit comments