MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / edit

Method edit

github/RepositoryDiscussionComment.py:103–112  ·  view source on GitHub ↗
(self, body: str, output_schema: str = "id")

Source from the content-addressed store, hash-verified

101 )
102
103 def edit(self, body: str, output_schema: str = "id") -> RepositoryDiscussionComment:
104 if not output_schema.startswith("\n"):
105 output_schema = f" {output_schema} "
106 return self._requester.graphql_named_mutation_class(
107 "updateDiscussionComment",
108 {"commentId": self.node_id, "body": body},
109 f"comment {{{output_schema}}}",
110 "comment",
111 github.RepositoryDiscussionComment.RepositoryDiscussionComment,
112 )
113
114 def delete(self, output_schema: str = "id") -> RepositoryDiscussionComment:
115 if not output_schema.startswith("\n"):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected