MCPcopy Create free account
hub / github.com/fastapi/fastapi / create_comment

Function create_comment

scripts/notify_translations.py:284–292  ·  view source on GitHub ↗
(*, settings: Settings, discussion_id: str, body: str)

Source from the content-addressed store, hash-verified

282
283
284def 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
295def update_comment(*, settings: Settings, comment_id: str, body: str) -> Comment:

Callers 1

mainFunction · 0.85

Calls 1

get_graphql_responseFunction · 0.70

Tested by

no test coverage detected