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

Method unminimize

github/IssueComment.py:249–262  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

247 return data["minimizedComment"]["isMinimized"] is True
248
249 def unminimize(self) -> bool:
250 """
251 :calls: `POST /graphql <https://docs.github.com/en/graphql>`__ with a mutation to unminimize comment
252 <https://docs.github.com/en/graphql/reference/mutations#unminimizecomment>
253 """
254 variables = {
255 "subjectId": self.node_id,
256 }
257 _, data = self._requester.graphql_named_mutation(
258 mutation_name="unminimizeComment",
259 mutation_input=NotSet.remove_unset_items(variables),
260 output_schema="unminimizedComment { isMinimized }",
261 )
262 return data["unminimizedComment"]["isMinimized"] is False
263
264 def _useAttributes(self, attributes: dict[str, Any]) -> None:
265 if "author_association" in attributes: # pragma no branch

Callers 1

testUnminimizeMethod · 0.80

Calls 2

remove_unset_itemsMethod · 0.80

Tested by

no test coverage detected