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,632 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
|
|
5
|
+
from ccai.restclient.base.aspectsrest import AspectsRest
|
|
6
|
+
from ccai.restclient.base.pagedlist import PagedList
|
|
7
|
+
from ccai.restclient.base.restapigroup import RestApiGroup
|
|
8
|
+
from ccai.restclient.github.public.schemas.checks import CheckAnnotation
|
|
9
|
+
from ccai.restclient.github.public.schemas.checks import CheckRun
|
|
10
|
+
from ccai.restclient.github.public.schemas.checks import CheckSuite
|
|
11
|
+
from ccai.restclient.github.public.schemas.checks import CheckSuitePreference
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ChecksApiGroup(RestApiGroup):
|
|
15
|
+
"""
|
|
16
|
+
Rich interactions with checks run by your integrations.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def create(self, owner: str, repo: str, body: Union[str, str], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
20
|
+
"""
|
|
21
|
+
Create a check run
|
|
22
|
+
|
|
23
|
+
Creates a new check run for a specific commit in a repository.
|
|
24
|
+
|
|
25
|
+
To create a check run, you must use a GitHub App. OAuth apps and authenticated users are not able to create a check suite.
|
|
26
|
+
|
|
27
|
+
In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.
|
|
28
|
+
|
|
29
|
+
> [!NOTE]
|
|
30
|
+
> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
|
|
31
|
+
"""
|
|
32
|
+
client = self.client
|
|
33
|
+
if aspects is None:
|
|
34
|
+
aspects = client.aspects
|
|
35
|
+
|
|
36
|
+
header_params = client.headers
|
|
37
|
+
if headers is not None:
|
|
38
|
+
header_params = headers
|
|
39
|
+
|
|
40
|
+
leaf_template = "/repos/{owner}/{repo}/check-runs"
|
|
41
|
+
path_params = {
|
|
42
|
+
'owner': owner,
|
|
43
|
+
'repo': repo,
|
|
44
|
+
}
|
|
45
|
+
call_leaf = leaf_template.format(**path_params)
|
|
46
|
+
|
|
47
|
+
query_params = None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
if exp_status is None:
|
|
51
|
+
exp_status = [201]
|
|
52
|
+
|
|
53
|
+
resp = client.perform_call(
|
|
54
|
+
leaf=call_leaf,
|
|
55
|
+
method="POST",
|
|
56
|
+
params=query_params if query_params else None,
|
|
57
|
+
body=body,
|
|
58
|
+
exp_status=exp_status,
|
|
59
|
+
headers=header_params if header_params else None,
|
|
60
|
+
context_msg=None,
|
|
61
|
+
aspects=aspects,
|
|
62
|
+
)
|
|
63
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
64
|
+
rtnval = None
|
|
65
|
+
else:
|
|
66
|
+
rtnval = resp.json()
|
|
67
|
+
return rtnval
|
|
68
|
+
|
|
69
|
+
def create_suite(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) -> CheckSuite:
|
|
70
|
+
"""
|
|
71
|
+
Create a check suite
|
|
72
|
+
|
|
73
|
+
Creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)".
|
|
74
|
+
|
|
75
|
+
> [!NOTE]
|
|
76
|
+
> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
|
|
77
|
+
|
|
78
|
+
OAuth apps and personal access tokens (classic) cannot use this endpoint.
|
|
79
|
+
"""
|
|
80
|
+
client = self.client
|
|
81
|
+
if aspects is None:
|
|
82
|
+
aspects = client.aspects
|
|
83
|
+
|
|
84
|
+
header_params = client.headers
|
|
85
|
+
if headers is not None:
|
|
86
|
+
header_params = headers
|
|
87
|
+
|
|
88
|
+
leaf_template = "/repos/{owner}/{repo}/check-suites"
|
|
89
|
+
path_params = {
|
|
90
|
+
'owner': owner,
|
|
91
|
+
'repo': repo,
|
|
92
|
+
}
|
|
93
|
+
call_leaf = leaf_template.format(**path_params)
|
|
94
|
+
|
|
95
|
+
query_params = None
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
if exp_status is None:
|
|
99
|
+
exp_status = [200, 201]
|
|
100
|
+
|
|
101
|
+
resp = client.perform_call(
|
|
102
|
+
leaf=call_leaf,
|
|
103
|
+
method="POST",
|
|
104
|
+
params=query_params if query_params else None,
|
|
105
|
+
body=body,
|
|
106
|
+
exp_status=exp_status,
|
|
107
|
+
headers=header_params if header_params else None,
|
|
108
|
+
context_msg=None,
|
|
109
|
+
aspects=aspects,
|
|
110
|
+
)
|
|
111
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
112
|
+
rtnobj = None
|
|
113
|
+
else:
|
|
114
|
+
raw_data = resp.json()
|
|
115
|
+
rtnobj = CheckSuite.from_dict(raw_data)
|
|
116
|
+
return rtnobj
|
|
117
|
+
|
|
118
|
+
def get(self, owner: str, repo: str, check_run_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CheckRun:
|
|
119
|
+
"""
|
|
120
|
+
Get a check run
|
|
121
|
+
|
|
122
|
+
Gets a single check run using its `id`.
|
|
123
|
+
|
|
124
|
+
> [!NOTE]
|
|
125
|
+
> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
|
|
126
|
+
|
|
127
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
|
|
128
|
+
"""
|
|
129
|
+
client = self.client
|
|
130
|
+
if aspects is None:
|
|
131
|
+
aspects = client.aspects
|
|
132
|
+
|
|
133
|
+
header_params = client.headers
|
|
134
|
+
if headers is not None:
|
|
135
|
+
header_params = headers
|
|
136
|
+
|
|
137
|
+
leaf_template = "/repos/{owner}/{repo}/check-runs/{check_run_id}"
|
|
138
|
+
path_params = {
|
|
139
|
+
'owner': owner,
|
|
140
|
+
'repo': repo,
|
|
141
|
+
'check_run_id': check_run_id,
|
|
142
|
+
}
|
|
143
|
+
call_leaf = leaf_template.format(**path_params)
|
|
144
|
+
|
|
145
|
+
query_params = None
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
if exp_status is None:
|
|
149
|
+
exp_status = [200]
|
|
150
|
+
|
|
151
|
+
resp = client.perform_call(
|
|
152
|
+
leaf=call_leaf,
|
|
153
|
+
method="GET",
|
|
154
|
+
params=query_params if query_params else None,
|
|
155
|
+
body=None,
|
|
156
|
+
exp_status=exp_status,
|
|
157
|
+
headers=header_params if header_params else None,
|
|
158
|
+
context_msg=None,
|
|
159
|
+
aspects=aspects,
|
|
160
|
+
)
|
|
161
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
162
|
+
rtnobj = None
|
|
163
|
+
else:
|
|
164
|
+
raw_data = resp.json()
|
|
165
|
+
rtnobj = CheckRun.from_dict(raw_data)
|
|
166
|
+
return rtnobj
|
|
167
|
+
|
|
168
|
+
def get_suite(self, owner: str, repo: str, check_suite_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CheckSuite:
|
|
169
|
+
"""
|
|
170
|
+
Get a check suite
|
|
171
|
+
|
|
172
|
+
Gets a single check suite using its `id`.
|
|
173
|
+
|
|
174
|
+
> [!NOTE]
|
|
175
|
+
> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
|
|
176
|
+
|
|
177
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
|
|
178
|
+
"""
|
|
179
|
+
client = self.client
|
|
180
|
+
if aspects is None:
|
|
181
|
+
aspects = client.aspects
|
|
182
|
+
|
|
183
|
+
header_params = client.headers
|
|
184
|
+
if headers is not None:
|
|
185
|
+
header_params = headers
|
|
186
|
+
|
|
187
|
+
leaf_template = "/repos/{owner}/{repo}/check-suites/{check_suite_id}"
|
|
188
|
+
path_params = {
|
|
189
|
+
'owner': owner,
|
|
190
|
+
'repo': repo,
|
|
191
|
+
'check_suite_id': check_suite_id,
|
|
192
|
+
}
|
|
193
|
+
call_leaf = leaf_template.format(**path_params)
|
|
194
|
+
|
|
195
|
+
query_params = None
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
if exp_status is None:
|
|
199
|
+
exp_status = [200]
|
|
200
|
+
|
|
201
|
+
resp = client.perform_call(
|
|
202
|
+
leaf=call_leaf,
|
|
203
|
+
method="GET",
|
|
204
|
+
params=query_params if query_params else None,
|
|
205
|
+
body=None,
|
|
206
|
+
exp_status=exp_status,
|
|
207
|
+
headers=header_params if header_params else None,
|
|
208
|
+
context_msg=None,
|
|
209
|
+
aspects=aspects,
|
|
210
|
+
)
|
|
211
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
212
|
+
rtnobj = None
|
|
213
|
+
else:
|
|
214
|
+
raw_data = resp.json()
|
|
215
|
+
rtnobj = CheckSuite.from_dict(raw_data)
|
|
216
|
+
return rtnobj
|
|
217
|
+
|
|
218
|
+
def list_annotations(self, owner: str, repo: str, check_run_id: int, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[CheckAnnotation]:
|
|
219
|
+
"""
|
|
220
|
+
List check run annotations
|
|
221
|
+
|
|
222
|
+
Lists annotations for a check run using the annotation `id`.
|
|
223
|
+
|
|
224
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
|
|
225
|
+
"""
|
|
226
|
+
client = self.client
|
|
227
|
+
if aspects is None:
|
|
228
|
+
aspects = client.aspects
|
|
229
|
+
|
|
230
|
+
header_params = client.headers
|
|
231
|
+
if headers is not None:
|
|
232
|
+
header_params = headers
|
|
233
|
+
|
|
234
|
+
leaf_template = "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
235
|
+
path_params = {
|
|
236
|
+
'owner': owner,
|
|
237
|
+
'repo': repo,
|
|
238
|
+
'check_run_id': check_run_id,
|
|
239
|
+
}
|
|
240
|
+
call_leaf = leaf_template.format(**path_params)
|
|
241
|
+
|
|
242
|
+
query_params = {}
|
|
243
|
+
if per_page is not None:
|
|
244
|
+
query_params['per_page'] = per_page
|
|
245
|
+
if page is not None:
|
|
246
|
+
query_params['page'] = page
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
if exp_status is None:
|
|
250
|
+
exp_status = [200]
|
|
251
|
+
|
|
252
|
+
resp = client.perform_call(
|
|
253
|
+
leaf=call_leaf,
|
|
254
|
+
method="GET",
|
|
255
|
+
params=query_params if query_params else None,
|
|
256
|
+
body=None,
|
|
257
|
+
exp_status=exp_status,
|
|
258
|
+
headers=header_params if header_params else None,
|
|
259
|
+
context_msg=None,
|
|
260
|
+
aspects=aspects,
|
|
261
|
+
)
|
|
262
|
+
raw_data = resp.json()
|
|
263
|
+
items = [self._parse_item(item, CheckAnnotation) for item in raw_data]
|
|
264
|
+
rtnval = PagedList[CheckAnnotation](items, dict(resp.headers), raw_data)
|
|
265
|
+
return rtnval
|
|
266
|
+
|
|
267
|
+
def list_for_ref(self, owner: str, repo: str, ref: str, *, check_name: Optional[str] = None, status: Optional[str] = None, filter: Optional[str] = "latest", per_page: Optional[int] = 30, page: Optional[int] = 1, app_id: Optional[int] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Dict[str, Any]:
|
|
268
|
+
"""
|
|
269
|
+
List check runs for a Git reference
|
|
270
|
+
|
|
271
|
+
Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.
|
|
272
|
+
|
|
273
|
+
> [!NOTE]
|
|
274
|
+
> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
|
|
275
|
+
|
|
276
|
+
If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
|
|
277
|
+
|
|
278
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
|
|
279
|
+
"""
|
|
280
|
+
client = self.client
|
|
281
|
+
if aspects is None:
|
|
282
|
+
aspects = client.aspects
|
|
283
|
+
|
|
284
|
+
header_params = client.headers
|
|
285
|
+
if headers is not None:
|
|
286
|
+
header_params = headers
|
|
287
|
+
|
|
288
|
+
leaf_template = "/repos/{owner}/{repo}/commits/{ref}/check-runs"
|
|
289
|
+
path_params = {
|
|
290
|
+
'owner': owner,
|
|
291
|
+
'repo': repo,
|
|
292
|
+
'ref': ref,
|
|
293
|
+
}
|
|
294
|
+
call_leaf = leaf_template.format(**path_params)
|
|
295
|
+
|
|
296
|
+
query_params = {}
|
|
297
|
+
if check_name is not None:
|
|
298
|
+
query_params['check_name'] = check_name
|
|
299
|
+
if status is not None:
|
|
300
|
+
query_params['status'] = status
|
|
301
|
+
if filter is not None:
|
|
302
|
+
query_params['filter'] = filter
|
|
303
|
+
if per_page is not None:
|
|
304
|
+
query_params['per_page'] = per_page
|
|
305
|
+
if page is not None:
|
|
306
|
+
query_params['page'] = page
|
|
307
|
+
if app_id is not None:
|
|
308
|
+
query_params['app_id'] = app_id
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
if exp_status is None:
|
|
312
|
+
exp_status = [200]
|
|
313
|
+
|
|
314
|
+
resp = client.perform_call(
|
|
315
|
+
leaf=call_leaf,
|
|
316
|
+
method="GET",
|
|
317
|
+
params=query_params if query_params else None,
|
|
318
|
+
body=None,
|
|
319
|
+
exp_status=exp_status,
|
|
320
|
+
headers=header_params if header_params else None,
|
|
321
|
+
context_msg=None,
|
|
322
|
+
aspects=aspects,
|
|
323
|
+
)
|
|
324
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
325
|
+
rtnval = None
|
|
326
|
+
else:
|
|
327
|
+
raw_data = resp.json()
|
|
328
|
+
rtnval = self._parse_item(raw_data, Dict[str, Any])
|
|
329
|
+
return rtnval
|
|
330
|
+
|
|
331
|
+
def list_for_suite(self, owner: str, repo: str, check_suite_id: int, *, check_name: Optional[str] = None, status: Optional[str] = None, filter: Optional[str] = "latest", per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Dict[str, Any]:
|
|
332
|
+
"""
|
|
333
|
+
List check runs in a check suite
|
|
334
|
+
|
|
335
|
+
Lists check runs for a check suite using its `id`.
|
|
336
|
+
|
|
337
|
+
> [!NOTE]
|
|
338
|
+
> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
|
|
339
|
+
|
|
340
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
|
|
341
|
+
"""
|
|
342
|
+
client = self.client
|
|
343
|
+
if aspects is None:
|
|
344
|
+
aspects = client.aspects
|
|
345
|
+
|
|
346
|
+
header_params = client.headers
|
|
347
|
+
if headers is not None:
|
|
348
|
+
header_params = headers
|
|
349
|
+
|
|
350
|
+
leaf_template = "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
351
|
+
path_params = {
|
|
352
|
+
'owner': owner,
|
|
353
|
+
'repo': repo,
|
|
354
|
+
'check_suite_id': check_suite_id,
|
|
355
|
+
}
|
|
356
|
+
call_leaf = leaf_template.format(**path_params)
|
|
357
|
+
|
|
358
|
+
query_params = {}
|
|
359
|
+
if check_name is not None:
|
|
360
|
+
query_params['check_name'] = check_name
|
|
361
|
+
if status is not None:
|
|
362
|
+
query_params['status'] = status
|
|
363
|
+
if filter is not None:
|
|
364
|
+
query_params['filter'] = filter
|
|
365
|
+
if per_page is not None:
|
|
366
|
+
query_params['per_page'] = per_page
|
|
367
|
+
if page is not None:
|
|
368
|
+
query_params['page'] = page
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
if exp_status is None:
|
|
372
|
+
exp_status = [200]
|
|
373
|
+
|
|
374
|
+
resp = client.perform_call(
|
|
375
|
+
leaf=call_leaf,
|
|
376
|
+
method="GET",
|
|
377
|
+
params=query_params if query_params else None,
|
|
378
|
+
body=None,
|
|
379
|
+
exp_status=exp_status,
|
|
380
|
+
headers=header_params if header_params else None,
|
|
381
|
+
context_msg=None,
|
|
382
|
+
aspects=aspects,
|
|
383
|
+
)
|
|
384
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
385
|
+
rtnval = None
|
|
386
|
+
else:
|
|
387
|
+
raw_data = resp.json()
|
|
388
|
+
rtnval = self._parse_item(raw_data, Dict[str, Any])
|
|
389
|
+
return rtnval
|
|
390
|
+
|
|
391
|
+
def list_suites_for_ref(self, owner: str, repo: str, ref: str, *, app_id: Optional[int] = None, check_name: Optional[str] = None, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Dict[str, Any]:
|
|
392
|
+
"""
|
|
393
|
+
List check suites for a Git reference
|
|
394
|
+
|
|
395
|
+
Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.
|
|
396
|
+
|
|
397
|
+
> [!NOTE]
|
|
398
|
+
> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
|
|
399
|
+
|
|
400
|
+
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
|
|
401
|
+
"""
|
|
402
|
+
client = self.client
|
|
403
|
+
if aspects is None:
|
|
404
|
+
aspects = client.aspects
|
|
405
|
+
|
|
406
|
+
header_params = client.headers
|
|
407
|
+
if headers is not None:
|
|
408
|
+
header_params = headers
|
|
409
|
+
|
|
410
|
+
leaf_template = "/repos/{owner}/{repo}/commits/{ref}/check-suites"
|
|
411
|
+
path_params = {
|
|
412
|
+
'owner': owner,
|
|
413
|
+
'repo': repo,
|
|
414
|
+
'ref': ref,
|
|
415
|
+
}
|
|
416
|
+
call_leaf = leaf_template.format(**path_params)
|
|
417
|
+
|
|
418
|
+
query_params = {}
|
|
419
|
+
if app_id is not None:
|
|
420
|
+
query_params['app_id'] = app_id
|
|
421
|
+
if check_name is not None:
|
|
422
|
+
query_params['check_name'] = check_name
|
|
423
|
+
if per_page is not None:
|
|
424
|
+
query_params['per_page'] = per_page
|
|
425
|
+
if page is not None:
|
|
426
|
+
query_params['page'] = page
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
if exp_status is None:
|
|
430
|
+
exp_status = [200]
|
|
431
|
+
|
|
432
|
+
resp = client.perform_call(
|
|
433
|
+
leaf=call_leaf,
|
|
434
|
+
method="GET",
|
|
435
|
+
params=query_params if query_params else None,
|
|
436
|
+
body=None,
|
|
437
|
+
exp_status=exp_status,
|
|
438
|
+
headers=header_params if header_params else None,
|
|
439
|
+
context_msg=None,
|
|
440
|
+
aspects=aspects,
|
|
441
|
+
)
|
|
442
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
443
|
+
rtnval = None
|
|
444
|
+
else:
|
|
445
|
+
raw_data = resp.json()
|
|
446
|
+
rtnval = self._parse_item(raw_data, Dict[str, Any])
|
|
447
|
+
return rtnval
|
|
448
|
+
|
|
449
|
+
def rerequest_run(self, owner: str, repo: str, check_run_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
450
|
+
"""
|
|
451
|
+
Rerequest a check run
|
|
452
|
+
|
|
453
|
+
Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, the `status` of the check suite it belongs to is reset to `queued` and the `conclusion` is cleared. The check run itself is not updated. GitHub apps recieving the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) with the `rerequested` action should then decide if the check run should be reset or updated and call the [update `check_run` endpoint](https://docs.github.com/rest/checks/runs#update-a-check-run) to update the check_run if desired.
|
|
454
|
+
|
|
455
|
+
For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".
|
|
456
|
+
"""
|
|
457
|
+
client = self.client
|
|
458
|
+
if aspects is None:
|
|
459
|
+
aspects = client.aspects
|
|
460
|
+
|
|
461
|
+
header_params = client.headers
|
|
462
|
+
if headers is not None:
|
|
463
|
+
header_params = headers
|
|
464
|
+
|
|
465
|
+
leaf_template = "/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
466
|
+
path_params = {
|
|
467
|
+
'owner': owner,
|
|
468
|
+
'repo': repo,
|
|
469
|
+
'check_run_id': check_run_id,
|
|
470
|
+
}
|
|
471
|
+
call_leaf = leaf_template.format(**path_params)
|
|
472
|
+
|
|
473
|
+
query_params = None
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
if exp_status is None:
|
|
477
|
+
exp_status = [201]
|
|
478
|
+
|
|
479
|
+
resp = client.perform_call(
|
|
480
|
+
leaf=call_leaf,
|
|
481
|
+
method="POST",
|
|
482
|
+
params=query_params if query_params else None,
|
|
483
|
+
body=None,
|
|
484
|
+
exp_status=exp_status,
|
|
485
|
+
headers=header_params if header_params else None,
|
|
486
|
+
context_msg=None,
|
|
487
|
+
aspects=aspects,
|
|
488
|
+
)
|
|
489
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
490
|
+
rtnval = None
|
|
491
|
+
else:
|
|
492
|
+
rtnval = resp.json()
|
|
493
|
+
return rtnval
|
|
494
|
+
|
|
495
|
+
def rerequest_suite(self, owner: str, repo: str, check_suite_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
496
|
+
"""
|
|
497
|
+
Rerequest a check suite
|
|
498
|
+
|
|
499
|
+
Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.
|
|
500
|
+
"""
|
|
501
|
+
client = self.client
|
|
502
|
+
if aspects is None:
|
|
503
|
+
aspects = client.aspects
|
|
504
|
+
|
|
505
|
+
header_params = client.headers
|
|
506
|
+
if headers is not None:
|
|
507
|
+
header_params = headers
|
|
508
|
+
|
|
509
|
+
leaf_template = "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
510
|
+
path_params = {
|
|
511
|
+
'owner': owner,
|
|
512
|
+
'repo': repo,
|
|
513
|
+
'check_suite_id': check_suite_id,
|
|
514
|
+
}
|
|
515
|
+
call_leaf = leaf_template.format(**path_params)
|
|
516
|
+
|
|
517
|
+
query_params = None
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
if exp_status is None:
|
|
521
|
+
exp_status = [201]
|
|
522
|
+
|
|
523
|
+
resp = client.perform_call(
|
|
524
|
+
leaf=call_leaf,
|
|
525
|
+
method="POST",
|
|
526
|
+
params=query_params if query_params else None,
|
|
527
|
+
body=None,
|
|
528
|
+
exp_status=exp_status,
|
|
529
|
+
headers=header_params if header_params else None,
|
|
530
|
+
context_msg=None,
|
|
531
|
+
aspects=aspects,
|
|
532
|
+
)
|
|
533
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
534
|
+
rtnval = None
|
|
535
|
+
else:
|
|
536
|
+
rtnval = resp.json()
|
|
537
|
+
return rtnval
|
|
538
|
+
|
|
539
|
+
def set_suites_preferences(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) -> CheckSuitePreference:
|
|
540
|
+
"""
|
|
541
|
+
Update repository preferences for check suites
|
|
542
|
+
|
|
543
|
+
Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite).
|
|
544
|
+
You must have admin permissions in the repository to set preferences for check suites.
|
|
545
|
+
"""
|
|
546
|
+
client = self.client
|
|
547
|
+
if aspects is None:
|
|
548
|
+
aspects = client.aspects
|
|
549
|
+
|
|
550
|
+
header_params = client.headers
|
|
551
|
+
if headers is not None:
|
|
552
|
+
header_params = headers
|
|
553
|
+
|
|
554
|
+
leaf_template = "/repos/{owner}/{repo}/check-suites/preferences"
|
|
555
|
+
path_params = {
|
|
556
|
+
'owner': owner,
|
|
557
|
+
'repo': repo,
|
|
558
|
+
}
|
|
559
|
+
call_leaf = leaf_template.format(**path_params)
|
|
560
|
+
|
|
561
|
+
query_params = None
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
if exp_status is None:
|
|
565
|
+
exp_status = [200]
|
|
566
|
+
|
|
567
|
+
resp = client.perform_call(
|
|
568
|
+
leaf=call_leaf,
|
|
569
|
+
method="PATCH",
|
|
570
|
+
params=query_params if query_params else None,
|
|
571
|
+
body=body,
|
|
572
|
+
exp_status=exp_status,
|
|
573
|
+
headers=header_params if header_params else None,
|
|
574
|
+
context_msg=None,
|
|
575
|
+
aspects=aspects,
|
|
576
|
+
)
|
|
577
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
578
|
+
rtnobj = None
|
|
579
|
+
else:
|
|
580
|
+
raw_data = resp.json()
|
|
581
|
+
rtnobj = CheckSuitePreference.from_dict(raw_data)
|
|
582
|
+
return rtnobj
|
|
583
|
+
|
|
584
|
+
def update(self, owner: str, repo: str, check_run_id: int, body: Union[str, str], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> CheckRun:
|
|
585
|
+
"""
|
|
586
|
+
Update a check run
|
|
587
|
+
|
|
588
|
+
Updates a check run for a specific commit in a repository.
|
|
589
|
+
|
|
590
|
+
> [!NOTE]
|
|
591
|
+
> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
|
|
592
|
+
|
|
593
|
+
OAuth apps and personal access tokens (classic) cannot use this endpoint.
|
|
594
|
+
"""
|
|
595
|
+
client = self.client
|
|
596
|
+
if aspects is None:
|
|
597
|
+
aspects = client.aspects
|
|
598
|
+
|
|
599
|
+
header_params = client.headers
|
|
600
|
+
if headers is not None:
|
|
601
|
+
header_params = headers
|
|
602
|
+
|
|
603
|
+
leaf_template = "/repos/{owner}/{repo}/check-runs/{check_run_id}"
|
|
604
|
+
path_params = {
|
|
605
|
+
'owner': owner,
|
|
606
|
+
'repo': repo,
|
|
607
|
+
'check_run_id': check_run_id,
|
|
608
|
+
}
|
|
609
|
+
call_leaf = leaf_template.format(**path_params)
|
|
610
|
+
|
|
611
|
+
query_params = None
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
if exp_status is None:
|
|
615
|
+
exp_status = [200]
|
|
616
|
+
|
|
617
|
+
resp = client.perform_call(
|
|
618
|
+
leaf=call_leaf,
|
|
619
|
+
method="PATCH",
|
|
620
|
+
params=query_params if query_params else None,
|
|
621
|
+
body=body,
|
|
622
|
+
exp_status=exp_status,
|
|
623
|
+
headers=header_params if header_params else None,
|
|
624
|
+
context_msg=None,
|
|
625
|
+
aspects=aspects,
|
|
626
|
+
)
|
|
627
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
628
|
+
rtnobj = None
|
|
629
|
+
else:
|
|
630
|
+
raw_data = resp.json()
|
|
631
|
+
rtnobj = CheckRun.from_dict(raw_data)
|
|
632
|
+
return rtnobj
|