(*, settings: Settings, discussion_id: str, body: str)
| 282 | |
| 283 | |
| 284 | def create_comment(*, settings: Settings, discussion_id: str, body: str) -> Comment: |
| 285 | data = get_graphql_response( |
| 286 | settings=settings, |
| 287 | query=add_comment_mutation, |
| 288 | discussion_id=discussion_id, |
| 289 | body=body, |
| 290 | ) |
| 291 | response = AddCommentResponse.model_validate(data) |
| 292 | return response.data.addDiscussionComment.comment |
| 293 | |
| 294 | |
| 295 | def update_comment(*, settings: Settings, comment_id: str, body: str) -> Comment: |
no test coverage detected