:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection `_
(self)
| 352 | return github.BranchProtection.BranchProtection(self._requester, headers, data, completed=True) |
| 353 | |
| 354 | def remove_protection(self) -> None: |
| 355 | """ |
| 356 | :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#branches>`_ |
| 357 | """ |
| 358 | headers, data = self._requester.requestJsonAndCheck( |
| 359 | "DELETE", |
| 360 | self.protection_url, |
| 361 | ) |
| 362 | |
| 363 | def get_required_status_checks(self) -> RequiredStatusChecks: |
| 364 | """ |
no test coverage detected