:calls: `POST /graphql `__ with a mutation to minimize comment
(self, reason: str = "OUTDATED")
| 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 | """ |
no test coverage detected