Convenience function that calls :meth:`Repository.create_git_ref` :rtype: :class:`github.GitRef.GitRef`
(self)
| 856 | return status == 204 |
| 857 | |
| 858 | def restore_branch(self) -> GitRef: |
| 859 | """ |
| 860 | Convenience function that calls :meth:`Repository.create_git_ref` :rtype: :class:`github.GitRef.GitRef` |
| 861 | """ |
| 862 | return self.head.repo.create_git_ref(f"refs/heads/{self.head.ref}", sha=self.head.sha) |
| 863 | |
| 864 | def delete_branch(self, force: bool = False) -> None: |
| 865 | """ |
no test coverage detected