(self, body: str, output_schema: str = "id")
| 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"): |
nothing calls this directly
no test coverage detected