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

Method offer_credit

github/RepositoryAdvisory.py:188–200  ·  view source on GitHub ↗

Offers credit to a user for a vulnerability in a repository. Unless you are giving credit to yourself, the user having credit offered will need to explicitly accept the credit. :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/re

(
        self,
        login_or_user: str | github.NamedUser.NamedUser,
        credit_type: str,
    )

Source from the content-addressed store, hash-verified

186 self._useAttributes(data)
187
188 def offer_credit(
189 self,
190 login_or_user: str | github.NamedUser.NamedUser,
191 credit_type: str,
192 ) -> None:
193 """
194 Offers credit to a user for a vulnerability in a repository.
195
196 Unless you are giving credit to yourself, the user having credit offered will need to explicitly accept the credit.
197 :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
198
199 """
200 self.offer_credits([{"login": login_or_user, "type": credit_type}])
201
202 def offer_credits(
203 self,

Callers 2

setUpMethod · 0.80
testOfferCreditMethod · 0.80

Calls 1

offer_creditsMethod · 0.95

Tested by

no test coverage detected