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

Method minimize

github/IssueComment.py:232–247  ·  view source on GitHub ↗

:calls: `POST /graphql `__ with a mutation to minimize comment

(self, reason: str = "OUTDATED")

Source from the content-addressed store, hash-verified

230 return status == 204
231
232 def minimize(self, reason: str = "OUTDATED") -> bool:
233 """
234 :calls: `POST /graphql <https://docs.github.com/en/graphql>`__ with a mutation to minimize comment
235 <https://docs.github.com/en/graphql/reference/mutations#minimizecomment>
236 """
237 assert isinstance(reason, str), reason
238 variables = {
239 "subjectId": self.node_id,
240 "classifier": reason,
241 }
242 _, data = self._requester.graphql_named_mutation(
243 mutation_name="minimizeComment",
244 mutation_input=NotSet.remove_unset_items(variables),
245 output_schema="minimizedComment { isMinimized }",
246 )
247 return data["minimizedComment"]["isMinimized"] is True
248
249 def unminimize(self) -> bool:
250 """

Callers 1

testMinimizeMethod · 0.80

Calls 2

remove_unset_itemsMethod · 0.80

Tested by

no test coverage detected