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

Method remove_protection

github/Branch.py:354–361  ·  view source on GitHub ↗

:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection `_

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

testRemoveProtectionMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected