(
self, owner: str, name: str, input: SetDefaultBranchInput
)
| 451 | # NB: This may have a payload, but we don't |
| 452 | # use it so I didn't bother constructing it. |
| 453 | def _set_default_branch( |
| 454 | self, owner: str, name: str, input: SetDefaultBranchInput |
| 455 | ) -> None: |
| 456 | state = self.state |
| 457 | repo = state.repository(owner, name) |
| 458 | repo.defaultBranchRef = repo._make_ref(state, input["default_branch"]) |
| 459 | |
| 460 | def rest(self, method: str, path: str, **kwargs: Any) -> Any: |
| 461 | if method == "get": |
no test coverage detected