codecraftai-restclient-github-public 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccai/restclient/github/public/__init__.py +0 -0
- ccai/restclient/github/public/generation/githubrestclientgenerator.py +56 -0
- ccai/restclient/github/public/generation/specs/api-hints.json +172 -0
- ccai/restclient/github/public/generation/specs/api-public.json +306020 -0
- ccai/restclient/github/public/generation/specs/pagination-hints.json +31 -0
- ccai/restclient/github/public/githubpublicrestclient.py +262 -0
- ccai/restclient/github/public/githubrestclientbase.py +120 -0
- ccai/restclient/github/public/groups/__init__.py +0 -0
- ccai/restclient/github/public/groups/actions.py +8042 -0
- ccai/restclient/github/public/groups/activity.py +1488 -0
- ccai/restclient/github/public/groups/apiinsights.py +478 -0
- ccai/restclient/github/public/groups/apps.py +1662 -0
- ccai/restclient/github/public/groups/billing.py +401 -0
- ccai/restclient/github/public/groups/campaigns.py +262 -0
- ccai/restclient/github/public/groups/checks.py +632 -0
- ccai/restclient/github/public/groups/classroom.py +276 -0
- ccai/restclient/github/public/groups/codescanning.py +1203 -0
- ccai/restclient/github/public/groups/codesecurity.py +997 -0
- ccai/restclient/github/public/groups/codesofconduct.py +92 -0
- ccai/restclient/github/public/groups/codespaces.py +2271 -0
- ccai/restclient/github/public/groups/copilot.py +517 -0
- ccai/restclient/github/public/groups/credentials.py +62 -0
- ccai/restclient/github/public/groups/dependabot.py +1155 -0
- ccai/restclient/github/public/groups/dependencygraph.py +152 -0
- ccai/restclient/github/public/groups/emojis.py +51 -0
- ccai/restclient/github/public/groups/gists.py +909 -0
- ccai/restclient/github/public/groups/git.py +734 -0
- ccai/restclient/github/public/groups/gitignore.py +96 -0
- ccai/restclient/github/public/groups/hostedcompute.py +290 -0
- ccai/restclient/github/public/groups/interactions.py +389 -0
- ccai/restclient/github/public/groups/issues.py +2460 -0
- ccai/restclient/github/public/groups/licenses.py +153 -0
- ccai/restclient/github/public/groups/markdown.py +88 -0
- ccai/restclient/github/public/groups/meta.py +213 -0
- ccai/restclient/github/public/groups/migrations.py +1079 -0
- ccai/restclient/github/public/groups/oidc.py +102 -0
- ccai/restclient/github/public/groups/orgs.py +3958 -0
- ccai/restclient/github/public/groups/packages.py +1316 -0
- ccai/restclient/github/public/groups/privateregistries.py +294 -0
- ccai/restclient/github/public/groups/projectsclassic.py +1154 -0
- ccai/restclient/github/public/groups/pulls.py +1469 -0
- ccai/restclient/github/public/groups/ratelimit.py +68 -0
- ccai/restclient/github/public/groups/reactions.py +1247 -0
- ccai/restclient/github/public/groups/repos.py +9741 -0
- ccai/restclient/github/public/groups/search.py +417 -0
- ccai/restclient/github/public/groups/secretscanning.py +568 -0
- ccai/restclient/github/public/groups/securityadvisories.py +541 -0
- ccai/restclient/github/public/groups/teams.py +2985 -0
- ccai/restclient/github/public/groups/users.py +2054 -0
- ccai/restclient/github/public/py.typed +0 -0
- ccai/restclient/github/public/schemas/__init__.py +0 -0
- ccai/restclient/github/public/schemas/actions.py +418 -0
- ccai/restclient/github/public/schemas/activity.py +95 -0
- ccai/restclient/github/public/schemas/actor.py +20 -0
- ccai/restclient/github/public/schemas/addedtoprojectissueevent.py +24 -0
- ccai/restclient/github/public/schemas/apps.py +151 -0
- ccai/restclient/github/public/schemas/assignedissueevent.py +25 -0
- ccai/restclient/github/public/schemas/authenticationtoken.py +20 -0
- ccai/restclient/github/public/schemas/automerge.py +16 -0
- ccai/restclient/github/public/schemas/basicerror.py +16 -0
- ccai/restclient/github/public/schemas/billing.py +27 -0
- ccai/restclient/github/public/schemas/billingusagereport.py +12 -0
- ccai/restclient/github/public/schemas/billingusagereportuser.py +12 -0
- ccai/restclient/github/public/schemas/campaigns.py +27 -0
- ccai/restclient/github/public/schemas/checkrunwithsimplechecksuite.py +31 -0
- ccai/restclient/github/public/schemas/checks.py +80 -0
- ccai/restclient/github/public/schemas/classroom.py +109 -0
- ccai/restclient/github/public/schemas/codeofconductsimple.py +18 -0
- ccai/restclient/github/public/schemas/codescanning.py +197 -0
- ccai/restclient/github/public/schemas/codescanningalertlocation.py +17 -0
- ccai/restclient/github/public/schemas/codescanningalertrule.py +20 -0
- ccai/restclient/github/public/schemas/codescanningalertrulesummary.py +20 -0
- ccai/restclient/github/public/schemas/codescanninganalysistool.py +14 -0
- ccai/restclient/github/public/schemas/codescanningautofixcommitsresponse.py +11 -0
- ccai/restclient/github/public/schemas/codescanningdefaultsetupupdateresponse.py +15 -0
- ccai/restclient/github/public/schemas/codescanningsarifsreceipt.py +11 -0
- ccai/restclient/github/public/schemas/codescanningvariantanalysisrepository.py +20 -0
- ccai/restclient/github/public/schemas/codescanningvariantanalysisskippedrepogroup.py +13 -0
- ccai/restclient/github/public/schemas/codesecurity.py +73 -0
- ccai/restclient/github/public/schemas/codesofconduct.py +19 -0
- ccai/restclient/github/public/schemas/codespaces.py +130 -0
- ccai/restclient/github/public/schemas/codespacewithfullrepository.py +45 -0
- ccai/restclient/github/public/schemas/commit.py +25 -0
- ccai/restclient/github/public/schemas/contenttree.py +27 -0
- ccai/restclient/github/public/schemas/convertednotetoissueissueevent.py +24 -0
- ccai/restclient/github/public/schemas/copilot.py +50 -0
- ccai/restclient/github/public/schemas/copilotdotcomchat.py +16 -0
- ccai/restclient/github/public/schemas/copilotdotcompullrequests.py +16 -0
- ccai/restclient/github/public/schemas/copilotidechat.py +16 -0
- ccai/restclient/github/public/schemas/copilotidecodecompletions.py +17 -0
- ccai/restclient/github/public/schemas/copilotorganizationseatbreakdown.py +18 -0
- ccai/restclient/github/public/schemas/cvssseverities.py +13 -0
- ccai/restclient/github/public/schemas/demilestonedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/dependabot.py +87 -0
- ccai/restclient/github/public/schemas/dependabotalertpackage.py +14 -0
- ccai/restclient/github/public/schemas/dependabotalertsecurityadvisory.py +29 -0
- ccai/restclient/github/public/schemas/dependabotalertsecurityvulnerability.py +18 -0
- ccai/restclient/github/public/schemas/dependency.py +16 -0
- ccai/restclient/github/public/schemas/dependencygraph.py +29 -0
- ccai/restclient/github/public/schemas/deploymentsimple.py +28 -0
- ccai/restclient/github/public/schemas/discussion.py +37 -0
- ccai/restclient/github/public/schemas/enterprise.py +24 -0
- ccai/restclient/github/public/schemas/enterpriseteam.py +27 -0
- ccai/restclient/github/public/schemas/enterprisewebhooks.py +26 -0
- ccai/restclient/github/public/schemas/gisthistory.py +19 -0
- ccai/restclient/github/public/schemas/gists.py +88 -0
- ccai/restclient/github/public/schemas/git.py +71 -0
- ccai/restclient/github/public/schemas/gitignore.py +14 -0
- ccai/restclient/github/public/schemas/hookdelivery.py +29 -0
- ccai/restclient/github/public/schemas/hookdeliveryitem.py +26 -0
- ccai/restclient/github/public/schemas/hookresponse.py +14 -0
- ccai/restclient/github/public/schemas/hostedcompute.py +30 -0
- ccai/restclient/github/public/schemas/installation.py +35 -0
- ccai/restclient/github/public/schemas/installationtoken.py +22 -0
- ccai/restclient/github/public/schemas/interactions.py +23 -0
- ccai/restclient/github/public/schemas/issuedependenciessummary.py +13 -0
- ccai/restclient/github/public/schemas/issueeventdismissedreview.py +15 -0
- ccai/restclient/github/public/schemas/issueeventlabel.py +16 -0
- ccai/restclient/github/public/schemas/issueeventmilestone.py +13 -0
- ccai/restclient/github/public/schemas/issueeventprojectcard.py +18 -0
- ccai/restclient/github/public/schemas/issueeventrename.py +14 -0
- ccai/restclient/github/public/schemas/issuefieldvalue.py +19 -0
- ccai/restclient/github/public/schemas/issues.py +135 -0
- ccai/restclient/github/public/schemas/labeledissueevent.py +24 -0
- ccai/restclient/github/public/schemas/licenses.py +58 -0
- ccai/restclient/github/public/schemas/link.py +13 -0
- ccai/restclient/github/public/schemas/linkwithtype.py +14 -0
- ccai/restclient/github/public/schemas/lockedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/manifest.py +15 -0
- ccai/restclient/github/public/schemas/marketplaceaccount.py +18 -0
- ccai/restclient/github/public/schemas/mergegroup.py +17 -0
- ccai/restclient/github/public/schemas/meta.py +67 -0
- ccai/restclient/github/public/schemas/migrations.py +84 -0
- ccai/restclient/github/public/schemas/milestonedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/minimalrepository.py +102 -0
- ccai/restclient/github/public/schemas/movedcolumninprojectissueevent.py +24 -0
- ccai/restclient/github/public/schemas/nullableactionshostedrunnerpoolimage.py +16 -0
- ccai/restclient/github/public/schemas/nullablecodeofconductsimple.py +18 -0
- ccai/restclient/github/public/schemas/nullablecodespacemachine.py +21 -0
- ccai/restclient/github/public/schemas/nullablecollaborator.py +37 -0
- ccai/restclient/github/public/schemas/nullablecommunityhealthfile.py +11 -0
- ccai/restclient/github/public/schemas/nullablegituser.py +15 -0
- ccai/restclient/github/public/schemas/nullableintegration.py +28 -0
- ccai/restclient/github/public/schemas/nullableissue.py +52 -0
- ccai/restclient/github/public/schemas/nullablelicensesimple.py +20 -0
- ccai/restclient/github/public/schemas/nullablemilestone.py +30 -0
- ccai/restclient/github/public/schemas/nullableminimalrepository.py +102 -0
- ccai/restclient/github/public/schemas/nullableorganizationsimple.py +26 -0
- ccai/restclient/github/public/schemas/nullableprojectsv2statusupdate.py +24 -0
- ccai/restclient/github/public/schemas/nullablerepository.py +110 -0
- ccai/restclient/github/public/schemas/nullablerepositorywebhooks.py +115 -0
- ccai/restclient/github/public/schemas/nullablescopedinstallation.py +18 -0
- ccai/restclient/github/public/schemas/nullablesimplecommit.py +20 -0
- ccai/restclient/github/public/schemas/nullablesimplerepository.py +60 -0
- ccai/restclient/github/public/schemas/nullablesimpleuser.py +36 -0
- ccai/restclient/github/public/schemas/nullableteamsimple.py +27 -0
- ccai/restclient/github/public/schemas/oidc.py +15 -0
- ccai/restclient/github/public/schemas/organizationinvitation.py +26 -0
- ccai/restclient/github/public/schemas/organizationsimplewebhooks.py +27 -0
- ccai/restclient/github/public/schemas/orgprivateregistryconfigurationwithselectedrepositories.py +21 -0
- ccai/restclient/github/public/schemas/orgs.py +332 -0
- ccai/restclient/github/public/schemas/packages.py +42 -0
- ccai/restclient/github/public/schemas/pagebuildstatus.py +14 -0
- ccai/restclient/github/public/schemas/pageshttpscertificate.py +15 -0
- ccai/restclient/github/public/schemas/pagessourcehash.py +11 -0
- ccai/restclient/github/public/schemas/personalaccesstokenrequest.py +28 -0
- ccai/restclient/github/public/schemas/privateregistries.py +20 -0
- ccai/restclient/github/public/schemas/projectsclassic.py +70 -0
- ccai/restclient/github/public/schemas/projectsv2.py +31 -0
- ccai/restclient/github/public/schemas/projectsv2item.py +23 -0
- ccai/restclient/github/public/schemas/projectsv2iterationsetting.py +20 -0
- ccai/restclient/github/public/schemas/projectsv2singleselectoption.py +18 -0
- ccai/restclient/github/public/schemas/projectsv2statusupdate.py +24 -0
- ccai/restclient/github/public/schemas/protectedbranchrequiredstatuscheck.py +20 -0
- ccai/restclient/github/public/schemas/publicip.py +15 -0
- ccai/restclient/github/public/schemas/pullrequestminimal.py +16 -0
- ccai/restclient/github/public/schemas/pullrequestsimple.py +50 -0
- ccai/restclient/github/public/schemas/pulls.py +185 -0
- ccai/restclient/github/public/schemas/ratelimit.py +23 -0
- ccai/restclient/github/public/schemas/reactions.py +17 -0
- ccai/restclient/github/public/schemas/referencedworkflow.py +15 -0
- ccai/restclient/github/public/schemas/removedfromprojectissueevent.py +24 -0
- ccai/restclient/github/public/schemas/renamedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/repos.py +952 -0
- ccai/restclient/github/public/schemas/repository.py +110 -0
- ccai/restclient/github/public/schemas/repositoryadvisorycredit.py +15 -0
- ccai/restclient/github/public/schemas/repositoryadvisoryvulnerability.py +18 -0
- ccai/restclient/github/public/schemas/repositoryrulebranchnamepattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecodescanning.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecommitauthoremailpattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecommitmessagepattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecommitteremailpattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulecreation.py +13 -0
- ccai/restclient/github/public/schemas/repositoryruledeletion.py +13 -0
- ccai/restclient/github/public/schemas/repositoryrulefileextensionrestriction.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulefilepathrestriction.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulemaxfilepathlength.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulemaxfilesize.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulemergequeue.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulenonfastforward.py +13 -0
- ccai/restclient/github/public/schemas/repositoryruleparamscodescanningtool.py +15 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsrequiredreviewerconfiguration.py +17 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsrestrictedcommits.py +14 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsreviewer.py +14 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsstatuscheckconfiguration.py +14 -0
- ccai/restclient/github/public/schemas/repositoryruleparamsworkflowfilereference.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulepullrequest.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulerequireddeployments.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulerequiredlinearhistory.py +13 -0
- ccai/restclient/github/public/schemas/repositoryrulerequiredsignatures.py +13 -0
- ccai/restclient/github/public/schemas/repositoryrulerequiredstatuschecks.py +16 -0
- ccai/restclient/github/public/schemas/repositoryrulerulesetinfo.py +15 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositoryidtarget.py +15 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorynametarget.py +15 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertyspec.py +17 -0
- ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertytarget.py +15 -0
- ccai/restclient/github/public/schemas/repositoryruletagnamepattern.py +16 -0
- ccai/restclient/github/public/schemas/repositoryruleupdate.py +16 -0
- ccai/restclient/github/public/schemas/repositoryruleviolationerror.py +18 -0
- ccai/restclient/github/public/schemas/repositoryruleworkflows.py +16 -0
- ccai/restclient/github/public/schemas/repositorywebhooks.py +115 -0
- ccai/restclient/github/public/schemas/reviewdismissedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/reviewrequestedissueevent.py +26 -0
- ccai/restclient/github/public/schemas/reviewrequestremovedissueevent.py +26 -0
- ccai/restclient/github/public/schemas/rulesetversion.py +17 -0
- ccai/restclient/github/public/schemas/runnerlabel.py +15 -0
- ccai/restclient/github/public/schemas/scimerror.py +20 -0
- ccai/restclient/github/public/schemas/search.py +263 -0
- ccai/restclient/github/public/schemas/secretscanning.py +96 -0
- ccai/restclient/github/public/schemas/secretscanningalertwebhook.py +33 -0
- ccai/restclient/github/public/schemas/secretscanninglocationcommit.py +21 -0
- ccai/restclient/github/public/schemas/secretscanninglocationdiscussionbody.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationdiscussioncomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationdiscussiontitle.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationissuebody.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationissuecomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationissuetitle.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestbody.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestcomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreview.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreviewcomment.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationpullrequesttitle.py +13 -0
- ccai/restclient/github/public/schemas/secretscanninglocationwikicommit.py +21 -0
- ccai/restclient/github/public/schemas/secretscanningpatternoverride.py +23 -0
- ccai/restclient/github/public/schemas/secretscanningscan.py +18 -0
- ccai/restclient/github/public/schemas/securityadvisories.py +106 -0
- ccai/restclient/github/public/schemas/securityadvisoryepss.py +14 -0
- ccai/restclient/github/public/schemas/securityandanalysis.py +18 -0
- ccai/restclient/github/public/schemas/shortblob.py +14 -0
- ccai/restclient/github/public/schemas/simplechecksuite.py +28 -0
- ccai/restclient/github/public/schemas/simpleclassroomorganization.py +20 -0
- ccai/restclient/github/public/schemas/simpleclassroomrepository.py +18 -0
- ccai/restclient/github/public/schemas/simpleclassroomuser.py +16 -0
- ccai/restclient/github/public/schemas/simplecommit.py +20 -0
- ccai/restclient/github/public/schemas/simplecommitstatus.py +22 -0
- ccai/restclient/github/public/schemas/simpleinstallation.py +16 -0
- ccai/restclient/github/public/schemas/simplerepository.py +60 -0
- ccai/restclient/github/public/schemas/statechangeissueevent.py +24 -0
- ccai/restclient/github/public/schemas/subissuessummary.py +12 -0
- ccai/restclient/github/public/schemas/teamorganization.py +63 -0
- ccai/restclient/github/public/schemas/teams.py +202 -0
- ccai/restclient/github/public/schemas/timelineassignedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/timelinecommentevent.py +30 -0
- ccai/restclient/github/public/schemas/timelinecommitcommentedevent.py +18 -0
- ccai/restclient/github/public/schemas/timelinecommittedevent.py +25 -0
- ccai/restclient/github/public/schemas/timelinecrossreferencedevent.py +19 -0
- ccai/restclient/github/public/schemas/timelinelinecommentedevent.py +17 -0
- ccai/restclient/github/public/schemas/timelinereviewedevent.py +29 -0
- ccai/restclient/github/public/schemas/timelineunassignedissueevent.py +24 -0
- ccai/restclient/github/public/schemas/traffic.py +12 -0
- ccai/restclient/github/public/schemas/unassignedissueevent.py +25 -0
- ccai/restclient/github/public/schemas/unlabeledissueevent.py +24 -0
- ccai/restclient/github/public/schemas/users.py +183 -0
- ccai/restclient/github/public/schemas/validationerror.py +17 -0
- ccai/restclient/github/public/schemas/validationerrorsimple.py +17 -0
- ccai/restclient/github/public/schemas/verification.py +16 -0
- ccai/restclient/github/public/schemas/vulnerability.py +18 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationdisabled.py +15 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationenabled.py +15 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionrulecreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionruledeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookbranchprotectionruleedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookcheckruncompleted.py +15 -0
- ccai/restclient/github/public/schemas/webhookcheckruncompletedformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookcheckruncreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookcheckruncreatedformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrequestedaction.py +18 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrequestedactionformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrerequested.py +15 -0
- ccai/restclient/github/public/schemas/webhookcheckrunrerequestedformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookchecksuitecompleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookchecksuiterequested.py +18 -0
- ccai/restclient/github/public/schemas/webhookchecksuitererequested.py +18 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertappearedinbranch.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertclosedbyuser.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertcreated.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertfixed.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertreopened.py +20 -0
- ccai/restclient/github/public/schemas/webhookcodescanningalertreopenedbyuser.py +20 -0
- ccai/restclient/github/public/schemas/webhookcommitcommentcreated.py +18 -0
- ccai/restclient/github/public/schemas/webhookcreate.py +21 -0
- ccai/restclient/github/public/schemas/webhookcustompropertycreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookcustompropertydeleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookcustompropertypromotedtoenterprise.py +15 -0
- ccai/restclient/github/public/schemas/webhookcustompropertyupdated.py +15 -0
- ccai/restclient/github/public/schemas/webhookcustompropertyvaluesupdated.py +19 -0
- ccai/restclient/github/public/schemas/webhookdelete.py +17 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertautodismissed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertautoreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertdismissed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertfixed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertreintroduced.py +16 -0
- ccai/restclient/github/public/schemas/webhookdependabotalertreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookdeploykeycreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookdeploykeydeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookdeploymentcreated.py +20 -0
- ccai/restclient/github/public/schemas/webhookdeploymentprotectionrulerequested.py +21 -0
- ccai/restclient/github/public/schemas/webhookdeploymentreviewapproved.py +24 -0
- ccai/restclient/github/public/schemas/webhookdeploymentreviewrejected.py +24 -0
- ccai/restclient/github/public/schemas/webhookdeploymentreviewrequested.py +23 -0
- ccai/restclient/github/public/schemas/webhookdeploymentstatuscreated.py +22 -0
- ccai/restclient/github/public/schemas/webhookdiscussionanswered.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncategorychanged.py +19 -0
- ccai/restclient/github/public/schemas/webhookdiscussionclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncommentcreated.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncommentdeleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncommentedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookdiscussioncreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussiondeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookdiscussionlabeled.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussionlocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionpinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussiontransferred.py +19 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunanswered.py +15 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunlabeled.py +17 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunlocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookdiscussionunpinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookfork.py +18 -0
- ccai/restclient/github/public/schemas/webhookgithubappauthorizationrevoked.py +11 -0
- ccai/restclient/github/public/schemas/webhookgollum.py +17 -0
- ccai/restclient/github/public/schemas/webhookinstallationcreated.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationdeleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationnewpermissionsaccepted.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationrepositoriesadded.py +21 -0
- ccai/restclient/github/public/schemas/webhookinstallationrepositoriesremoved.py +21 -0
- ccai/restclient/github/public/schemas/webhookinstallationsuspend.py +19 -0
- ccai/restclient/github/public/schemas/webhookinstallationtargetrenamed.py +20 -0
- ccai/restclient/github/public/schemas/webhookinstallationunsuspend.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuecommentcreated.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuecommentdeleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuecommentedited.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyadded.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockingadded.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuedependenciesblockingremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuesassigned.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookissuesdeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuesdemilestoned.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuesedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookissueslabeled.py +19 -0
- ccai/restclient/github/public/schemas/webhookissueslocked.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuesmilestoned.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuesopened.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuespinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookissuesreopened.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuestransferred.py +19 -0
- ccai/restclient/github/public/schemas/webhookissuestyped.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesunassigned.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesunlabeled.py +17 -0
- ccai/restclient/github/public/schemas/webhookissuesunlocked.py +18 -0
- ccai/restclient/github/public/schemas/webhookissuesunpinned.py +16 -0
- ccai/restclient/github/public/schemas/webhookissuesuntyped.py +17 -0
- ccai/restclient/github/public/schemas/webhooklabelcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooklabeldeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhooklabeledited.py +19 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasecancelled.py +18 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasechanged.py +20 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchange.py +20 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchangecancelled.py +20 -0
- ccai/restclient/github/public/schemas/webhookmarketplacepurchasepurchased.py +18 -0
- ccai/restclient/github/public/schemas/webhookmemberadded.py +19 -0
- ccai/restclient/github/public/schemas/webhookmemberedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookmemberremoved.py +16 -0
- ccai/restclient/github/public/schemas/webhookmembershipadded.py +20 -0
- ccai/restclient/github/public/schemas/webhookmembershipremoved.py +20 -0
- ccai/restclient/github/public/schemas/webhookmergegroupchecksrequested.py +15 -0
- ccai/restclient/github/public/schemas/webhookmergegroupdestroyed.py +16 -0
- ccai/restclient/github/public/schemas/webhookmetadeleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookmilestoneclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookmilestonecreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookmilestonedeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookmilestoneedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookmilestoneopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationdeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationmemberadded.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationmemberinvited.py +19 -0
- ccai/restclient/github/public/schemas/webhookorganizationmemberremoved.py +16 -0
- ccai/restclient/github/public/schemas/webhookorganizationrenamed.py +19 -0
- ccai/restclient/github/public/schemas/webhookorgblockblocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookorgblockunblocked.py +16 -0
- ccai/restclient/github/public/schemas/webhookpackagepublished.py +18 -0
- ccai/restclient/github/public/schemas/webhookpackageupdated.py +18 -0
- ccai/restclient/github/public/schemas/webhookpagebuild.py +18 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestapproved.py +15 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcancelled.py +15 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestdenied.py +15 -0
- ccai/restclient/github/public/schemas/webhookping.py +17 -0
- ccai/restclient/github/public/schemas/webhookpingformencoded.py +13 -0
- ccai/restclient/github/public/schemas/webhookprojectcardconverted.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectcardcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcarddeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookprojectcardedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectcardmoved.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectclosed.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumncreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumndeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumnedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectcolumnmoved.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectdeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookprojectreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemarchived.py +15 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemconverted.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemcreated.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemdeleted.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemedited.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemreordered.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2itemrestored.py +15 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectclosed.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectcreated.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectdeleted.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectedited.py +17 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2projectreopened.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatecreated.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatedeleted.py +14 -0
- ccai/restclient/github/public/schemas/webhookprojectsv2statusupdateedited.py +17 -0
- ccai/restclient/github/public/schemas/webhookpublic.py +14 -0
- ccai/restclient/github/public/schemas/webhookpullrequestassigned.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestautomergedisabled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestautomergeenabled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestclosed.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestconvertedtodraft.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestdemilestoned.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestdequeued.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestenqueued.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestlabeled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestlocked.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestmilestoned.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestopened.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreadyforreview.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreopened.py +17 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentcreated.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentdeleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewdismissed.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewedited.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewsubmitted.py +19 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadresolved.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadunresolved.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestsynchronize.py +21 -0
- ccai/restclient/github/public/schemas/webhookpullrequestunassigned.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestunlabeled.py +20 -0
- ccai/restclient/github/public/schemas/webhookpullrequestunlocked.py +19 -0
- ccai/restclient/github/public/schemas/webhookpush.py +27 -0
- ccai/restclient/github/public/schemas/webhookregistrypackagepublished.py +18 -0
- ccai/restclient/github/public/schemas/webhookregistrypackageupdated.py +18 -0
- ccai/restclient/github/public/schemas/webhookreleasecreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleasedeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleaseedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookreleaseprereleased.py +18 -0
- ccai/restclient/github/public/schemas/webhookreleasepublished.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleasereleased.py +16 -0
- ccai/restclient/github/public/schemas/webhookreleaseunpublished.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryadvisorypublished.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryadvisoryreported.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryarchived.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorycreated.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorydeleted.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorydispatchsample.py +19 -0
- ccai/restclient/github/public/schemas/webhookrepositoryedited.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryimport.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositoryprivatized.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositorypublicized.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrenamed.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrulesetcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrulesetdeleted.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryrulesetedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookrepositorytransferred.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryunarchived.py +15 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertcreate.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertdismiss.py +18 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertreopen.py +16 -0
- ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertresolve.py +18 -0
- ccai/restclient/github/public/schemas/webhookrubygemsmetadata.py +21 -0
- ccai/restclient/github/public/schemas/webhooksalert.py +31 -0
- ccai/restclient/github/public/schemas/webhooksanswer.py +24 -0
- ccai/restclient/github/public/schemas/webhooksapprover.py +28 -0
- ccai/restclient/github/public/schemas/webhookschanges.py +15 -0
- ccai/restclient/github/public/schemas/webhookschanges8.py +12 -0
- ccai/restclient/github/public/schemas/webhookscomment.py +24 -0
- ccai/restclient/github/public/schemas/webhooksdeploykey.py +24 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreatedformencoded.py +10 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertpubliclyleaked.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertreopened.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertresolved.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningalertvalidated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecretscanningscancompleted.py +24 -0
- ccai/restclient/github/public/schemas/webhooksecurityadvisorypublished.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecurityadvisoryupdated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksecurityadvisorywithdrawn.py +18 -0
- ccai/restclient/github/public/schemas/webhooksecurityandanalysis.py +17 -0
- ccai/restclient/github/public/schemas/webhooksissue.py +48 -0
- ccai/restclient/github/public/schemas/webhooksissue2.py +48 -0
- ccai/restclient/github/public/schemas/webhooksissuecomment.py +26 -0
- ccai/restclient/github/public/schemas/webhookslabel.py +18 -0
- ccai/restclient/github/public/schemas/webhooksmarketplacepurchase.py +18 -0
- ccai/restclient/github/public/schemas/webhooksmembership.py +21 -0
- ccai/restclient/github/public/schemas/webhooksmilestone.py +30 -0
- ccai/restclient/github/public/schemas/webhooksmilestone3.py +30 -0
- ccai/restclient/github/public/schemas/webhooksponsorshipcancelled.py +16 -0
- ccai/restclient/github/public/schemas/webhooksponsorshipcreated.py +16 -0
- ccai/restclient/github/public/schemas/webhooksponsorshipedited.py +19 -0
- ccai/restclient/github/public/schemas/webhooksponsorshippendingcancellation.py +17 -0
- ccai/restclient/github/public/schemas/webhooksponsorshippendingtierchange.py +18 -0
- ccai/restclient/github/public/schemas/webhooksponsorshiptierchanged.py +17 -0
- ccai/restclient/github/public/schemas/webhookspreviousmarketplacepurchase.py +18 -0
- ccai/restclient/github/public/schemas/webhooksproject.py +24 -0
- ccai/restclient/github/public/schemas/webhooksprojectcard.py +24 -0
- ccai/restclient/github/public/schemas/webhooksprojectchanges.py +12 -0
- ccai/restclient/github/public/schemas/webhooksprojectcolumn.py +20 -0
- ccai/restclient/github/public/schemas/webhookspullrequest5.py +59 -0
- ccai/restclient/github/public/schemas/webhooksrelease.py +36 -0
- ccai/restclient/github/public/schemas/webhooksrelease1.py +36 -0
- ccai/restclient/github/public/schemas/webhooksreview.py +26 -0
- ccai/restclient/github/public/schemas/webhooksreviewcomment.py +41 -0
- ccai/restclient/github/public/schemas/webhooksrule.py +42 -0
- ccai/restclient/github/public/schemas/webhookssecurityadvisory.py +27 -0
- ccai/restclient/github/public/schemas/webhookssponsorship.py +18 -0
- ccai/restclient/github/public/schemas/webhookstarcreated.py +18 -0
- ccai/restclient/github/public/schemas/webhookstardeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookstatus.py +28 -0
- ccai/restclient/github/public/schemas/webhooksteam.py +28 -0
- ccai/restclient/github/public/schemas/webhooksteam1.py +28 -0
- ccai/restclient/github/public/schemas/webhooksubissuesparentissueadded.py +19 -0
- ccai/restclient/github/public/schemas/webhooksubissuesparentissueremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhooksubissuessubissueadded.py +19 -0
- ccai/restclient/github/public/schemas/webhooksubissuessubissueremoved.py +19 -0
- ccai/restclient/github/public/schemas/webhooksuser.py +33 -0
- ccai/restclient/github/public/schemas/webhooksusermannequin.py +33 -0
- ccai/restclient/github/public/schemas/webhooksworkflow.py +19 -0
- ccai/restclient/github/public/schemas/webhooksworkflowjobrun.py +19 -0
- ccai/restclient/github/public/schemas/webhookteamadd.py +15 -0
- ccai/restclient/github/public/schemas/webhookteamaddedtorepository.py +18 -0
- ccai/restclient/github/public/schemas/webhookteamcreated.py +18 -0
- ccai/restclient/github/public/schemas/webhookteamdeleted.py +18 -0
- ccai/restclient/github/public/schemas/webhookteamedited.py +19 -0
- ccai/restclient/github/public/schemas/webhookteamremovedfromrepository.py +18 -0
- ccai/restclient/github/public/schemas/webhookwatchstarted.py +15 -0
- ccai/restclient/github/public/schemas/webhookworkflowdispatch.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobcompleted.py +17 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobinprogress.py +17 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobqueued.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowjobwaiting.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowruncompleted.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowruninprogress.py +19 -0
- ccai/restclient/github/public/schemas/webhookworkflowrunrequested.py +19 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/METADATA +87 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/RECORD +579 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/WHEEL +4 -0
- codecraftai_restclient_github_public-1.2.0.dist-info/licenses/LICENSE.md +204 -0
|
@@ -0,0 +1,734 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from ccai.restclient.base.aspectsrest import AspectsRest
|
|
6
|
+
from ccai.restclient.base.restapigroup import RestApiGroup
|
|
7
|
+
from ccai.restclient.github.public.schemas.git import Blob
|
|
8
|
+
from ccai.restclient.github.public.schemas.git import GitCommit
|
|
9
|
+
from ccai.restclient.github.public.schemas.git import GitRef
|
|
10
|
+
from ccai.restclient.github.public.schemas.git import GitTag
|
|
11
|
+
from ccai.restclient.github.public.schemas.git import GitTree
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GitApiGroup(RestApiGroup):
|
|
15
|
+
"""
|
|
16
|
+
Raw Git functionality.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def create_blob(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
20
|
+
"""
|
|
21
|
+
Create a blob
|
|
22
|
+
"""
|
|
23
|
+
client = self.client
|
|
24
|
+
if aspects is None:
|
|
25
|
+
aspects = client.aspects
|
|
26
|
+
|
|
27
|
+
header_params = client.headers
|
|
28
|
+
if headers is not None:
|
|
29
|
+
header_params = headers
|
|
30
|
+
|
|
31
|
+
leaf_template = "/repos/{owner}/{repo}/git/blobs"
|
|
32
|
+
path_params = {
|
|
33
|
+
'owner': owner,
|
|
34
|
+
'repo': repo,
|
|
35
|
+
}
|
|
36
|
+
call_leaf = leaf_template.format(**path_params)
|
|
37
|
+
|
|
38
|
+
query_params = None
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
if exp_status is None:
|
|
42
|
+
exp_status = [201]
|
|
43
|
+
|
|
44
|
+
resp = client.perform_call(
|
|
45
|
+
leaf=call_leaf,
|
|
46
|
+
method="POST",
|
|
47
|
+
params=query_params if query_params else None,
|
|
48
|
+
body=body,
|
|
49
|
+
exp_status=exp_status,
|
|
50
|
+
headers=header_params if header_params else None,
|
|
51
|
+
context_msg=None,
|
|
52
|
+
aspects=aspects,
|
|
53
|
+
)
|
|
54
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
55
|
+
rtnval = None
|
|
56
|
+
else:
|
|
57
|
+
rtnval = resp.json()
|
|
58
|
+
return rtnval
|
|
59
|
+
|
|
60
|
+
def create_commit(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
61
|
+
"""
|
|
62
|
+
Create a commit
|
|
63
|
+
|
|
64
|
+
Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).
|
|
65
|
+
|
|
66
|
+
**Signature verification object**
|
|
67
|
+
|
|
68
|
+
The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
|
69
|
+
|
|
70
|
+
| Name | Type | Description |
|
|
71
|
+
| ---- | ---- | ----------- |
|
|
72
|
+
| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
|
73
|
+
| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. |
|
|
74
|
+
| `signature` | `string` | The signature that was extracted from the commit. |
|
|
75
|
+
| `payload` | `string` | The value that was signed. |
|
|
76
|
+
| `verified_at` | `string` | The date the signature was verified by GitHub. |
|
|
77
|
+
|
|
78
|
+
These are the possible values for `reason` in the `verification` object:
|
|
79
|
+
|
|
80
|
+
| Value | Description |
|
|
81
|
+
| ----- | ----------- |
|
|
82
|
+
| `expired_key` | The key that made the signature is expired. |
|
|
83
|
+
| `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. |
|
|
84
|
+
| `gpgverify_error` | There was an error communicating with the signature verification service. |
|
|
85
|
+
| `gpgverify_unavailable` | The signature verification service is currently unavailable. |
|
|
86
|
+
| `unsigned` | The object does not include a signature. |
|
|
87
|
+
| `unknown_signature_type` | A non-PGP signature was found in the commit. |
|
|
88
|
+
| `no_user` | No user was associated with the `committer` email address in the commit. |
|
|
89
|
+
| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. |
|
|
90
|
+
| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |
|
|
91
|
+
| `unknown_key` | The key that made the signature has not been registered with any user's account. |
|
|
92
|
+
| `malformed_signature` | There was an error parsing the signature. |
|
|
93
|
+
| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |
|
|
94
|
+
| `valid` | None of the above errors applied, so the signature is considered to be verified. |
|
|
95
|
+
"""
|
|
96
|
+
client = self.client
|
|
97
|
+
if aspects is None:
|
|
98
|
+
aspects = client.aspects
|
|
99
|
+
|
|
100
|
+
header_params = client.headers
|
|
101
|
+
if headers is not None:
|
|
102
|
+
header_params = headers
|
|
103
|
+
|
|
104
|
+
leaf_template = "/repos/{owner}/{repo}/git/commits"
|
|
105
|
+
path_params = {
|
|
106
|
+
'owner': owner,
|
|
107
|
+
'repo': repo,
|
|
108
|
+
}
|
|
109
|
+
call_leaf = leaf_template.format(**path_params)
|
|
110
|
+
|
|
111
|
+
query_params = None
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
if exp_status is None:
|
|
115
|
+
exp_status = [201]
|
|
116
|
+
|
|
117
|
+
resp = client.perform_call(
|
|
118
|
+
leaf=call_leaf,
|
|
119
|
+
method="POST",
|
|
120
|
+
params=query_params if query_params else None,
|
|
121
|
+
body=body,
|
|
122
|
+
exp_status=exp_status,
|
|
123
|
+
headers=header_params if header_params else None,
|
|
124
|
+
context_msg=None,
|
|
125
|
+
aspects=aspects,
|
|
126
|
+
)
|
|
127
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
128
|
+
rtnval = None
|
|
129
|
+
else:
|
|
130
|
+
rtnval = resp.json()
|
|
131
|
+
return rtnval
|
|
132
|
+
|
|
133
|
+
def create_ref(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
134
|
+
"""
|
|
135
|
+
Create a reference
|
|
136
|
+
|
|
137
|
+
Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.
|
|
138
|
+
"""
|
|
139
|
+
client = self.client
|
|
140
|
+
if aspects is None:
|
|
141
|
+
aspects = client.aspects
|
|
142
|
+
|
|
143
|
+
header_params = client.headers
|
|
144
|
+
if headers is not None:
|
|
145
|
+
header_params = headers
|
|
146
|
+
|
|
147
|
+
leaf_template = "/repos/{owner}/{repo}/git/refs"
|
|
148
|
+
path_params = {
|
|
149
|
+
'owner': owner,
|
|
150
|
+
'repo': repo,
|
|
151
|
+
}
|
|
152
|
+
call_leaf = leaf_template.format(**path_params)
|
|
153
|
+
|
|
154
|
+
query_params = None
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
if exp_status is None:
|
|
158
|
+
exp_status = [201]
|
|
159
|
+
|
|
160
|
+
resp = client.perform_call(
|
|
161
|
+
leaf=call_leaf,
|
|
162
|
+
method="POST",
|
|
163
|
+
params=query_params if query_params else None,
|
|
164
|
+
body=body,
|
|
165
|
+
exp_status=exp_status,
|
|
166
|
+
headers=header_params if header_params else None,
|
|
167
|
+
context_msg=None,
|
|
168
|
+
aspects=aspects,
|
|
169
|
+
)
|
|
170
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
171
|
+
rtnval = None
|
|
172
|
+
else:
|
|
173
|
+
rtnval = resp.json()
|
|
174
|
+
return rtnval
|
|
175
|
+
|
|
176
|
+
def create_tag(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
177
|
+
"""
|
|
178
|
+
Create a tag object
|
|
179
|
+
|
|
180
|
+
Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.
|
|
181
|
+
|
|
182
|
+
**Signature verification object**
|
|
183
|
+
|
|
184
|
+
The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
|
185
|
+
|
|
186
|
+
| Name | Type | Description |
|
|
187
|
+
| ---- | ---- | ----------- |
|
|
188
|
+
| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
|
189
|
+
| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
|
190
|
+
| `signature` | `string` | The signature that was extracted from the commit. |
|
|
191
|
+
| `payload` | `string` | The value that was signed. |
|
|
192
|
+
| `verified_at` | `string` | The date the signature was verified by GitHub. |
|
|
193
|
+
|
|
194
|
+
These are the possible values for `reason` in the `verification` object:
|
|
195
|
+
|
|
196
|
+
| Value | Description |
|
|
197
|
+
| ----- | ----------- |
|
|
198
|
+
| `expired_key` | The key that made the signature is expired. |
|
|
199
|
+
| `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. |
|
|
200
|
+
| `gpgverify_error` | There was an error communicating with the signature verification service. |
|
|
201
|
+
| `gpgverify_unavailable` | The signature verification service is currently unavailable. |
|
|
202
|
+
| `unsigned` | The object does not include a signature. |
|
|
203
|
+
| `unknown_signature_type` | A non-PGP signature was found in the commit. |
|
|
204
|
+
| `no_user` | No user was associated with the `committer` email address in the commit. |
|
|
205
|
+
| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. |
|
|
206
|
+
| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |
|
|
207
|
+
| `unknown_key` | The key that made the signature has not been registered with any user's account. |
|
|
208
|
+
| `malformed_signature` | There was an error parsing the signature. |
|
|
209
|
+
| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |
|
|
210
|
+
| `valid` | None of the above errors applied, so the signature is considered to be verified. |
|
|
211
|
+
"""
|
|
212
|
+
client = self.client
|
|
213
|
+
if aspects is None:
|
|
214
|
+
aspects = client.aspects
|
|
215
|
+
|
|
216
|
+
header_params = client.headers
|
|
217
|
+
if headers is not None:
|
|
218
|
+
header_params = headers
|
|
219
|
+
|
|
220
|
+
leaf_template = "/repos/{owner}/{repo}/git/tags"
|
|
221
|
+
path_params = {
|
|
222
|
+
'owner': owner,
|
|
223
|
+
'repo': repo,
|
|
224
|
+
}
|
|
225
|
+
call_leaf = leaf_template.format(**path_params)
|
|
226
|
+
|
|
227
|
+
query_params = None
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
if exp_status is None:
|
|
231
|
+
exp_status = [201]
|
|
232
|
+
|
|
233
|
+
resp = client.perform_call(
|
|
234
|
+
leaf=call_leaf,
|
|
235
|
+
method="POST",
|
|
236
|
+
params=query_params if query_params else None,
|
|
237
|
+
body=body,
|
|
238
|
+
exp_status=exp_status,
|
|
239
|
+
headers=header_params if header_params else None,
|
|
240
|
+
context_msg=None,
|
|
241
|
+
aspects=aspects,
|
|
242
|
+
)
|
|
243
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
244
|
+
rtnval = None
|
|
245
|
+
else:
|
|
246
|
+
rtnval = resp.json()
|
|
247
|
+
return rtnval
|
|
248
|
+
|
|
249
|
+
def create_tree(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
250
|
+
"""
|
|
251
|
+
Create a tree
|
|
252
|
+
|
|
253
|
+
The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
|
|
254
|
+
|
|
255
|
+
If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://docs.github.com/rest/git/commits#create-a-commit)" and "[Update a reference](https://docs.github.com/rest/git/refs#update-a-reference)."
|
|
256
|
+
|
|
257
|
+
Returns an error if you try to delete a file that does not exist.
|
|
258
|
+
"""
|
|
259
|
+
client = self.client
|
|
260
|
+
if aspects is None:
|
|
261
|
+
aspects = client.aspects
|
|
262
|
+
|
|
263
|
+
header_params = client.headers
|
|
264
|
+
if headers is not None:
|
|
265
|
+
header_params = headers
|
|
266
|
+
|
|
267
|
+
leaf_template = "/repos/{owner}/{repo}/git/trees"
|
|
268
|
+
path_params = {
|
|
269
|
+
'owner': owner,
|
|
270
|
+
'repo': repo,
|
|
271
|
+
}
|
|
272
|
+
call_leaf = leaf_template.format(**path_params)
|
|
273
|
+
|
|
274
|
+
query_params = None
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
if exp_status is None:
|
|
278
|
+
exp_status = [201]
|
|
279
|
+
|
|
280
|
+
resp = client.perform_call(
|
|
281
|
+
leaf=call_leaf,
|
|
282
|
+
method="POST",
|
|
283
|
+
params=query_params if query_params else None,
|
|
284
|
+
body=body,
|
|
285
|
+
exp_status=exp_status,
|
|
286
|
+
headers=header_params if header_params else None,
|
|
287
|
+
context_msg=None,
|
|
288
|
+
aspects=aspects,
|
|
289
|
+
)
|
|
290
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
291
|
+
rtnval = None
|
|
292
|
+
else:
|
|
293
|
+
rtnval = resp.json()
|
|
294
|
+
return rtnval
|
|
295
|
+
|
|
296
|
+
def delete_ref(self, owner: str, repo: str, ref: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
297
|
+
"""
|
|
298
|
+
Delete a reference
|
|
299
|
+
|
|
300
|
+
Deletes the provided reference.
|
|
301
|
+
"""
|
|
302
|
+
client = self.client
|
|
303
|
+
if aspects is None:
|
|
304
|
+
aspects = client.aspects
|
|
305
|
+
|
|
306
|
+
header_params = client.headers
|
|
307
|
+
if headers is not None:
|
|
308
|
+
header_params = headers
|
|
309
|
+
|
|
310
|
+
leaf_template = "/repos/{owner}/{repo}/git/refs/{ref}"
|
|
311
|
+
path_params = {
|
|
312
|
+
'owner': owner,
|
|
313
|
+
'repo': repo,
|
|
314
|
+
'ref': ref,
|
|
315
|
+
}
|
|
316
|
+
call_leaf = leaf_template.format(**path_params)
|
|
317
|
+
|
|
318
|
+
query_params = None
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
if exp_status is None:
|
|
322
|
+
exp_status = [204]
|
|
323
|
+
|
|
324
|
+
resp = client.perform_call(
|
|
325
|
+
leaf=call_leaf,
|
|
326
|
+
method="DELETE",
|
|
327
|
+
params=query_params if query_params else None,
|
|
328
|
+
body=None,
|
|
329
|
+
exp_status=exp_status,
|
|
330
|
+
headers=header_params if header_params else None,
|
|
331
|
+
context_msg=None,
|
|
332
|
+
aspects=aspects,
|
|
333
|
+
)
|
|
334
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
335
|
+
rtnval = None
|
|
336
|
+
else:
|
|
337
|
+
rtnval = resp.json()
|
|
338
|
+
return rtnval
|
|
339
|
+
|
|
340
|
+
def get_blob(self, owner: str, repo: str, file_sha: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Blob:
|
|
341
|
+
"""
|
|
342
|
+
Get a blob
|
|
343
|
+
|
|
344
|
+
The `content` in the response will always be Base64 encoded.
|
|
345
|
+
|
|
346
|
+
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
|
|
347
|
+
|
|
348
|
+
- **`application/vnd.github.raw+json`**: Returns the raw blob data.
|
|
349
|
+
- **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.
|
|
350
|
+
|
|
351
|
+
**Note** This endpoint supports blobs up to 100 megabytes in size.
|
|
352
|
+
"""
|
|
353
|
+
client = self.client
|
|
354
|
+
if aspects is None:
|
|
355
|
+
aspects = client.aspects
|
|
356
|
+
|
|
357
|
+
header_params = client.headers
|
|
358
|
+
if headers is not None:
|
|
359
|
+
header_params = headers
|
|
360
|
+
|
|
361
|
+
leaf_template = "/repos/{owner}/{repo}/git/blobs/{file_sha}"
|
|
362
|
+
path_params = {
|
|
363
|
+
'owner': owner,
|
|
364
|
+
'repo': repo,
|
|
365
|
+
'file_sha': file_sha,
|
|
366
|
+
}
|
|
367
|
+
call_leaf = leaf_template.format(**path_params)
|
|
368
|
+
|
|
369
|
+
query_params = None
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
if exp_status is None:
|
|
373
|
+
exp_status = [200]
|
|
374
|
+
|
|
375
|
+
resp = client.perform_call(
|
|
376
|
+
leaf=call_leaf,
|
|
377
|
+
method="GET",
|
|
378
|
+
params=query_params if query_params else None,
|
|
379
|
+
body=None,
|
|
380
|
+
exp_status=exp_status,
|
|
381
|
+
headers=header_params if header_params else None,
|
|
382
|
+
context_msg=None,
|
|
383
|
+
aspects=aspects,
|
|
384
|
+
)
|
|
385
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
386
|
+
rtnobj = None
|
|
387
|
+
else:
|
|
388
|
+
raw_data = resp.json()
|
|
389
|
+
rtnobj = Blob.from_dict(raw_data)
|
|
390
|
+
return rtnobj
|
|
391
|
+
|
|
392
|
+
def get_commit(self, owner: str, repo: str, commit_sha: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GitCommit:
|
|
393
|
+
"""
|
|
394
|
+
Get a commit object
|
|
395
|
+
|
|
396
|
+
Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).
|
|
397
|
+
|
|
398
|
+
To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."
|
|
399
|
+
|
|
400
|
+
**Signature verification object**
|
|
401
|
+
|
|
402
|
+
The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
|
403
|
+
|
|
404
|
+
| Name | Type | Description |
|
|
405
|
+
| ---- | ---- | ----------- |
|
|
406
|
+
| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
|
407
|
+
| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. |
|
|
408
|
+
| `signature` | `string` | The signature that was extracted from the commit. |
|
|
409
|
+
| `payload` | `string` | The value that was signed. |
|
|
410
|
+
| `verified_at` | `string` | The date the signature was verified by GitHub. |
|
|
411
|
+
|
|
412
|
+
These are the possible values for `reason` in the `verification` object:
|
|
413
|
+
|
|
414
|
+
| Value | Description |
|
|
415
|
+
| ----- | ----------- |
|
|
416
|
+
| `expired_key` | The key that made the signature is expired. |
|
|
417
|
+
| `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. |
|
|
418
|
+
| `gpgverify_error` | There was an error communicating with the signature verification service. |
|
|
419
|
+
| `gpgverify_unavailable` | The signature verification service is currently unavailable. |
|
|
420
|
+
| `unsigned` | The object does not include a signature. |
|
|
421
|
+
| `unknown_signature_type` | A non-PGP signature was found in the commit. |
|
|
422
|
+
| `no_user` | No user was associated with the `committer` email address in the commit. |
|
|
423
|
+
| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. |
|
|
424
|
+
| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |
|
|
425
|
+
| `unknown_key` | The key that made the signature has not been registered with any user's account. |
|
|
426
|
+
| `malformed_signature` | There was an error parsing the signature. |
|
|
427
|
+
| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |
|
|
428
|
+
| `valid` | None of the above errors applied, so the signature is considered to be verified. |
|
|
429
|
+
"""
|
|
430
|
+
client = self.client
|
|
431
|
+
if aspects is None:
|
|
432
|
+
aspects = client.aspects
|
|
433
|
+
|
|
434
|
+
header_params = client.headers
|
|
435
|
+
if headers is not None:
|
|
436
|
+
header_params = headers
|
|
437
|
+
|
|
438
|
+
leaf_template = "/repos/{owner}/{repo}/git/commits/{commit_sha}"
|
|
439
|
+
path_params = {
|
|
440
|
+
'owner': owner,
|
|
441
|
+
'repo': repo,
|
|
442
|
+
'commit_sha': commit_sha,
|
|
443
|
+
}
|
|
444
|
+
call_leaf = leaf_template.format(**path_params)
|
|
445
|
+
|
|
446
|
+
query_params = None
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
if exp_status is None:
|
|
450
|
+
exp_status = [200]
|
|
451
|
+
|
|
452
|
+
resp = client.perform_call(
|
|
453
|
+
leaf=call_leaf,
|
|
454
|
+
method="GET",
|
|
455
|
+
params=query_params if query_params else None,
|
|
456
|
+
body=None,
|
|
457
|
+
exp_status=exp_status,
|
|
458
|
+
headers=header_params if header_params else None,
|
|
459
|
+
context_msg=None,
|
|
460
|
+
aspects=aspects,
|
|
461
|
+
)
|
|
462
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
463
|
+
rtnobj = None
|
|
464
|
+
else:
|
|
465
|
+
raw_data = resp.json()
|
|
466
|
+
rtnobj = GitCommit.from_dict(raw_data)
|
|
467
|
+
return rtnobj
|
|
468
|
+
|
|
469
|
+
def get_ref(self, owner: str, repo: str, ref: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GitRef:
|
|
470
|
+
"""
|
|
471
|
+
Get a reference
|
|
472
|
+
|
|
473
|
+
Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/<branch name>` for branches and `tags/<tag name>` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned.
|
|
474
|
+
|
|
475
|
+
> [!NOTE]
|
|
476
|
+
> You need to explicitly [request a pull request](https://docs.github.com/rest/pulls/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)".
|
|
477
|
+
"""
|
|
478
|
+
client = self.client
|
|
479
|
+
if aspects is None:
|
|
480
|
+
aspects = client.aspects
|
|
481
|
+
|
|
482
|
+
header_params = client.headers
|
|
483
|
+
if headers is not None:
|
|
484
|
+
header_params = headers
|
|
485
|
+
|
|
486
|
+
leaf_template = "/repos/{owner}/{repo}/git/ref/{ref}"
|
|
487
|
+
path_params = {
|
|
488
|
+
'owner': owner,
|
|
489
|
+
'repo': repo,
|
|
490
|
+
'ref': ref,
|
|
491
|
+
}
|
|
492
|
+
call_leaf = leaf_template.format(**path_params)
|
|
493
|
+
|
|
494
|
+
query_params = None
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
if exp_status is None:
|
|
498
|
+
exp_status = [200]
|
|
499
|
+
|
|
500
|
+
resp = client.perform_call(
|
|
501
|
+
leaf=call_leaf,
|
|
502
|
+
method="GET",
|
|
503
|
+
params=query_params if query_params else None,
|
|
504
|
+
body=None,
|
|
505
|
+
exp_status=exp_status,
|
|
506
|
+
headers=header_params if header_params else None,
|
|
507
|
+
context_msg=None,
|
|
508
|
+
aspects=aspects,
|
|
509
|
+
)
|
|
510
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
511
|
+
rtnobj = None
|
|
512
|
+
else:
|
|
513
|
+
raw_data = resp.json()
|
|
514
|
+
rtnobj = GitRef.from_dict(raw_data)
|
|
515
|
+
return rtnobj
|
|
516
|
+
|
|
517
|
+
def get_tag(self, owner: str, repo: str, tag_sha: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GitTag:
|
|
518
|
+
"""
|
|
519
|
+
Get a tag
|
|
520
|
+
|
|
521
|
+
**Signature verification object**
|
|
522
|
+
|
|
523
|
+
The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
|
524
|
+
|
|
525
|
+
| Name | Type | Description |
|
|
526
|
+
| ---- | ---- | ----------- |
|
|
527
|
+
| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
|
528
|
+
| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
|
529
|
+
| `signature` | `string` | The signature that was extracted from the commit. |
|
|
530
|
+
| `payload` | `string` | The value that was signed. |
|
|
531
|
+
| `verified_at` | `string` | The date the signature was verified by GitHub. |
|
|
532
|
+
|
|
533
|
+
These are the possible values for `reason` in the `verification` object:
|
|
534
|
+
|
|
535
|
+
| Value | Description |
|
|
536
|
+
| ----- | ----------- |
|
|
537
|
+
| `expired_key` | The key that made the signature is expired. |
|
|
538
|
+
| `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. |
|
|
539
|
+
| `gpgverify_error` | There was an error communicating with the signature verification service. |
|
|
540
|
+
| `gpgverify_unavailable` | The signature verification service is currently unavailable. |
|
|
541
|
+
| `unsigned` | The object does not include a signature. |
|
|
542
|
+
| `unknown_signature_type` | A non-PGP signature was found in the commit. |
|
|
543
|
+
| `no_user` | No user was associated with the `committer` email address in the commit. |
|
|
544
|
+
| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. |
|
|
545
|
+
| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |
|
|
546
|
+
| `unknown_key` | The key that made the signature has not been registered with any user's account. |
|
|
547
|
+
| `malformed_signature` | There was an error parsing the signature. |
|
|
548
|
+
| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |
|
|
549
|
+
| `valid` | None of the above errors applied, so the signature is considered to be verified. |
|
|
550
|
+
"""
|
|
551
|
+
client = self.client
|
|
552
|
+
if aspects is None:
|
|
553
|
+
aspects = client.aspects
|
|
554
|
+
|
|
555
|
+
header_params = client.headers
|
|
556
|
+
if headers is not None:
|
|
557
|
+
header_params = headers
|
|
558
|
+
|
|
559
|
+
leaf_template = "/repos/{owner}/{repo}/git/tags/{tag_sha}"
|
|
560
|
+
path_params = {
|
|
561
|
+
'owner': owner,
|
|
562
|
+
'repo': repo,
|
|
563
|
+
'tag_sha': tag_sha,
|
|
564
|
+
}
|
|
565
|
+
call_leaf = leaf_template.format(**path_params)
|
|
566
|
+
|
|
567
|
+
query_params = None
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
if exp_status is None:
|
|
571
|
+
exp_status = [200]
|
|
572
|
+
|
|
573
|
+
resp = client.perform_call(
|
|
574
|
+
leaf=call_leaf,
|
|
575
|
+
method="GET",
|
|
576
|
+
params=query_params if query_params else None,
|
|
577
|
+
body=None,
|
|
578
|
+
exp_status=exp_status,
|
|
579
|
+
headers=header_params if header_params else None,
|
|
580
|
+
context_msg=None,
|
|
581
|
+
aspects=aspects,
|
|
582
|
+
)
|
|
583
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
584
|
+
rtnobj = None
|
|
585
|
+
else:
|
|
586
|
+
raw_data = resp.json()
|
|
587
|
+
rtnobj = GitTag.from_dict(raw_data)
|
|
588
|
+
return rtnobj
|
|
589
|
+
|
|
590
|
+
def get_tree(self, owner: str, repo: str, tree_sha: str, *, recursive: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GitTree:
|
|
591
|
+
"""
|
|
592
|
+
Get a tree
|
|
593
|
+
|
|
594
|
+
Returns a single tree using the SHA1 value or ref name for that tree.
|
|
595
|
+
|
|
596
|
+
If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.
|
|
597
|
+
|
|
598
|
+
> [!NOTE]
|
|
599
|
+
> The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter.
|
|
600
|
+
"""
|
|
601
|
+
client = self.client
|
|
602
|
+
if aspects is None:
|
|
603
|
+
aspects = client.aspects
|
|
604
|
+
|
|
605
|
+
header_params = client.headers
|
|
606
|
+
if headers is not None:
|
|
607
|
+
header_params = headers
|
|
608
|
+
|
|
609
|
+
leaf_template = "/repos/{owner}/{repo}/git/trees/{tree_sha}"
|
|
610
|
+
path_params = {
|
|
611
|
+
'owner': owner,
|
|
612
|
+
'repo': repo,
|
|
613
|
+
'tree_sha': tree_sha,
|
|
614
|
+
}
|
|
615
|
+
call_leaf = leaf_template.format(**path_params)
|
|
616
|
+
|
|
617
|
+
query_params = {}
|
|
618
|
+
if recursive is not None:
|
|
619
|
+
query_params['recursive'] = recursive
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
if exp_status is None:
|
|
623
|
+
exp_status = [200]
|
|
624
|
+
|
|
625
|
+
resp = client.perform_call(
|
|
626
|
+
leaf=call_leaf,
|
|
627
|
+
method="GET",
|
|
628
|
+
params=query_params if query_params else None,
|
|
629
|
+
body=None,
|
|
630
|
+
exp_status=exp_status,
|
|
631
|
+
headers=header_params if header_params else None,
|
|
632
|
+
context_msg=None,
|
|
633
|
+
aspects=aspects,
|
|
634
|
+
)
|
|
635
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
636
|
+
rtnobj = None
|
|
637
|
+
else:
|
|
638
|
+
raw_data = resp.json()
|
|
639
|
+
rtnobj = GitTree.from_dict(raw_data)
|
|
640
|
+
return rtnobj
|
|
641
|
+
|
|
642
|
+
def list_matching_refs(self, owner: str, repo: str, ref: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[GitRef]:
|
|
643
|
+
"""
|
|
644
|
+
List matching references
|
|
645
|
+
|
|
646
|
+
Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/<branch name>` for branches and `tags/<tag name>` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array.
|
|
647
|
+
|
|
648
|
+
When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`.
|
|
649
|
+
|
|
650
|
+
> [!NOTE]
|
|
651
|
+
> You need to explicitly [request a pull request](https://docs.github.com/rest/pulls/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)".
|
|
652
|
+
|
|
653
|
+
If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`.
|
|
654
|
+
"""
|
|
655
|
+
client = self.client
|
|
656
|
+
if aspects is None:
|
|
657
|
+
aspects = client.aspects
|
|
658
|
+
|
|
659
|
+
header_params = client.headers
|
|
660
|
+
if headers is not None:
|
|
661
|
+
header_params = headers
|
|
662
|
+
|
|
663
|
+
leaf_template = "/repos/{owner}/{repo}/git/matching-refs/{ref}"
|
|
664
|
+
path_params = {
|
|
665
|
+
'owner': owner,
|
|
666
|
+
'repo': repo,
|
|
667
|
+
'ref': ref,
|
|
668
|
+
}
|
|
669
|
+
call_leaf = leaf_template.format(**path_params)
|
|
670
|
+
|
|
671
|
+
query_params = None
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
if exp_status is None:
|
|
675
|
+
exp_status = [200]
|
|
676
|
+
|
|
677
|
+
resp = client.perform_call(
|
|
678
|
+
leaf=call_leaf,
|
|
679
|
+
method="GET",
|
|
680
|
+
params=query_params if query_params else None,
|
|
681
|
+
body=None,
|
|
682
|
+
exp_status=exp_status,
|
|
683
|
+
headers=header_params if header_params else None,
|
|
684
|
+
context_msg=None,
|
|
685
|
+
aspects=aspects,
|
|
686
|
+
)
|
|
687
|
+
raw_data = resp.json()
|
|
688
|
+
items = [self._parse_item(item, GitRef) for item in raw_data]
|
|
689
|
+
return items
|
|
690
|
+
|
|
691
|
+
def update_ref(self, owner: str, repo: str, ref: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> GitRef:
|
|
692
|
+
"""
|
|
693
|
+
Update a reference
|
|
694
|
+
|
|
695
|
+
Updates the provided reference to point to a new SHA. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.
|
|
696
|
+
"""
|
|
697
|
+
client = self.client
|
|
698
|
+
if aspects is None:
|
|
699
|
+
aspects = client.aspects
|
|
700
|
+
|
|
701
|
+
header_params = client.headers
|
|
702
|
+
if headers is not None:
|
|
703
|
+
header_params = headers
|
|
704
|
+
|
|
705
|
+
leaf_template = "/repos/{owner}/{repo}/git/refs/{ref}"
|
|
706
|
+
path_params = {
|
|
707
|
+
'owner': owner,
|
|
708
|
+
'repo': repo,
|
|
709
|
+
'ref': ref,
|
|
710
|
+
}
|
|
711
|
+
call_leaf = leaf_template.format(**path_params)
|
|
712
|
+
|
|
713
|
+
query_params = None
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
if exp_status is None:
|
|
717
|
+
exp_status = [200]
|
|
718
|
+
|
|
719
|
+
resp = client.perform_call(
|
|
720
|
+
leaf=call_leaf,
|
|
721
|
+
method="PATCH",
|
|
722
|
+
params=query_params if query_params else None,
|
|
723
|
+
body=body,
|
|
724
|
+
exp_status=exp_status,
|
|
725
|
+
headers=header_params if header_params else None,
|
|
726
|
+
context_msg=None,
|
|
727
|
+
aspects=aspects,
|
|
728
|
+
)
|
|
729
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
730
|
+
rtnobj = None
|
|
731
|
+
else:
|
|
732
|
+
raw_data = resp.json()
|
|
733
|
+
rtnobj = GitRef.from_dict(raw_data)
|
|
734
|
+
return rtnobj
|