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

Method clear_credits

github/RepositoryAdvisory.py:250–260  ·  view source on GitHub ↗

:calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} `_

(self)

Source from the content-addressed store, hash-verified

248 self._useAttributes(data)
249
250 def clear_credits(self) -> None:
251 """
252 :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/rest/security-advisories/repository-advisories>`_
253 """
254 patch_parameters: dict[str, Any] = {"credits": []}
255 headers, data = self._requester.requestJsonAndCheck(
256 "PATCH",
257 self.url,
258 input=patch_parameters,
259 )
260 self._useAttributes(data)
261
262 def edit(
263 self,

Callers 2

setUpMethod · 0.80
testOfferCreditsMethod · 0.80

Calls 2

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected