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,1247 @@
|
|
|
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.pagedlist import PagedList
|
|
7
|
+
from ccai.restclient.base.restapigroup import RestApiGroup
|
|
8
|
+
from ccai.restclient.github.public.schemas.reactions import Reaction
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ReactionsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Interact with reactions to various GitHub entities.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def create_for_commit_comment(self, owner: str, repo: str, comment_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
17
|
+
"""
|
|
18
|
+
Create reaction for a commit comment
|
|
19
|
+
|
|
20
|
+
Create a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment). A response with an HTTP `200` status means that you already added the reaction type to this commit comment.
|
|
21
|
+
"""
|
|
22
|
+
client = self.client
|
|
23
|
+
if aspects is None:
|
|
24
|
+
aspects = client.aspects
|
|
25
|
+
|
|
26
|
+
header_params = client.headers
|
|
27
|
+
if headers is not None:
|
|
28
|
+
header_params = headers
|
|
29
|
+
|
|
30
|
+
leaf_template = "/repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
31
|
+
path_params = {
|
|
32
|
+
'owner': owner,
|
|
33
|
+
'repo': repo,
|
|
34
|
+
'comment_id': comment_id,
|
|
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 = [200, 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
|
+
rtnobj = None
|
|
56
|
+
else:
|
|
57
|
+
raw_data = resp.json()
|
|
58
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
59
|
+
return rtnobj
|
|
60
|
+
|
|
61
|
+
def create_for_issue(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
62
|
+
"""
|
|
63
|
+
Create reaction for an issue
|
|
64
|
+
|
|
65
|
+
Create a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue). A response with an HTTP `200` status means that you already added the reaction type to this issue.
|
|
66
|
+
"""
|
|
67
|
+
client = self.client
|
|
68
|
+
if aspects is None:
|
|
69
|
+
aspects = client.aspects
|
|
70
|
+
|
|
71
|
+
header_params = client.headers
|
|
72
|
+
if headers is not None:
|
|
73
|
+
header_params = headers
|
|
74
|
+
|
|
75
|
+
leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
76
|
+
path_params = {
|
|
77
|
+
'owner': owner,
|
|
78
|
+
'repo': repo,
|
|
79
|
+
'issue_number': issue_number,
|
|
80
|
+
}
|
|
81
|
+
call_leaf = leaf_template.format(**path_params)
|
|
82
|
+
|
|
83
|
+
query_params = None
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
if exp_status is None:
|
|
87
|
+
exp_status = [200, 201]
|
|
88
|
+
|
|
89
|
+
resp = client.perform_call(
|
|
90
|
+
leaf=call_leaf,
|
|
91
|
+
method="POST",
|
|
92
|
+
params=query_params if query_params else None,
|
|
93
|
+
body=body,
|
|
94
|
+
exp_status=exp_status,
|
|
95
|
+
headers=header_params if header_params else None,
|
|
96
|
+
context_msg=None,
|
|
97
|
+
aspects=aspects,
|
|
98
|
+
)
|
|
99
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
100
|
+
rtnobj = None
|
|
101
|
+
else:
|
|
102
|
+
raw_data = resp.json()
|
|
103
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
104
|
+
return rtnobj
|
|
105
|
+
|
|
106
|
+
def create_for_issue_comment(self, owner: str, repo: str, comment_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
107
|
+
"""
|
|
108
|
+
Create reaction for an issue comment
|
|
109
|
+
|
|
110
|
+
Create a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment). A response with an HTTP `200` status means that you already added the reaction type to this issue comment.
|
|
111
|
+
"""
|
|
112
|
+
client = self.client
|
|
113
|
+
if aspects is None:
|
|
114
|
+
aspects = client.aspects
|
|
115
|
+
|
|
116
|
+
header_params = client.headers
|
|
117
|
+
if headers is not None:
|
|
118
|
+
header_params = headers
|
|
119
|
+
|
|
120
|
+
leaf_template = "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
121
|
+
path_params = {
|
|
122
|
+
'owner': owner,
|
|
123
|
+
'repo': repo,
|
|
124
|
+
'comment_id': comment_id,
|
|
125
|
+
}
|
|
126
|
+
call_leaf = leaf_template.format(**path_params)
|
|
127
|
+
|
|
128
|
+
query_params = None
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
if exp_status is None:
|
|
132
|
+
exp_status = [200, 201]
|
|
133
|
+
|
|
134
|
+
resp = client.perform_call(
|
|
135
|
+
leaf=call_leaf,
|
|
136
|
+
method="POST",
|
|
137
|
+
params=query_params if query_params else None,
|
|
138
|
+
body=body,
|
|
139
|
+
exp_status=exp_status,
|
|
140
|
+
headers=header_params if header_params else None,
|
|
141
|
+
context_msg=None,
|
|
142
|
+
aspects=aspects,
|
|
143
|
+
)
|
|
144
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
145
|
+
rtnobj = None
|
|
146
|
+
else:
|
|
147
|
+
raw_data = resp.json()
|
|
148
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
149
|
+
return rtnobj
|
|
150
|
+
|
|
151
|
+
def create_for_pull_request_review_comment(self, owner: str, repo: str, comment_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
152
|
+
"""
|
|
153
|
+
Create reaction for a pull request review comment
|
|
154
|
+
|
|
155
|
+
Create a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request). A response with an HTTP `200` status means that you already added the reaction type to this pull request review comment.
|
|
156
|
+
"""
|
|
157
|
+
client = self.client
|
|
158
|
+
if aspects is None:
|
|
159
|
+
aspects = client.aspects
|
|
160
|
+
|
|
161
|
+
header_params = client.headers
|
|
162
|
+
if headers is not None:
|
|
163
|
+
header_params = headers
|
|
164
|
+
|
|
165
|
+
leaf_template = "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
166
|
+
path_params = {
|
|
167
|
+
'owner': owner,
|
|
168
|
+
'repo': repo,
|
|
169
|
+
'comment_id': comment_id,
|
|
170
|
+
}
|
|
171
|
+
call_leaf = leaf_template.format(**path_params)
|
|
172
|
+
|
|
173
|
+
query_params = None
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
if exp_status is None:
|
|
177
|
+
exp_status = [200, 201]
|
|
178
|
+
|
|
179
|
+
resp = client.perform_call(
|
|
180
|
+
leaf=call_leaf,
|
|
181
|
+
method="POST",
|
|
182
|
+
params=query_params if query_params else None,
|
|
183
|
+
body=body,
|
|
184
|
+
exp_status=exp_status,
|
|
185
|
+
headers=header_params if header_params else None,
|
|
186
|
+
context_msg=None,
|
|
187
|
+
aspects=aspects,
|
|
188
|
+
)
|
|
189
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
190
|
+
rtnobj = None
|
|
191
|
+
else:
|
|
192
|
+
raw_data = resp.json()
|
|
193
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
194
|
+
return rtnobj
|
|
195
|
+
|
|
196
|
+
def create_for_release(self, owner: str, repo: str, release_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
197
|
+
"""
|
|
198
|
+
Create reaction for a release
|
|
199
|
+
|
|
200
|
+
Create a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release). A response with a `Status: 200 OK` means that you already added the reaction type to this release.
|
|
201
|
+
"""
|
|
202
|
+
client = self.client
|
|
203
|
+
if aspects is None:
|
|
204
|
+
aspects = client.aspects
|
|
205
|
+
|
|
206
|
+
header_params = client.headers
|
|
207
|
+
if headers is not None:
|
|
208
|
+
header_params = headers
|
|
209
|
+
|
|
210
|
+
leaf_template = "/repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
211
|
+
path_params = {
|
|
212
|
+
'owner': owner,
|
|
213
|
+
'repo': repo,
|
|
214
|
+
'release_id': release_id,
|
|
215
|
+
}
|
|
216
|
+
call_leaf = leaf_template.format(**path_params)
|
|
217
|
+
|
|
218
|
+
query_params = None
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
if exp_status is None:
|
|
222
|
+
exp_status = [200, 201]
|
|
223
|
+
|
|
224
|
+
resp = client.perform_call(
|
|
225
|
+
leaf=call_leaf,
|
|
226
|
+
method="POST",
|
|
227
|
+
params=query_params if query_params else None,
|
|
228
|
+
body=body,
|
|
229
|
+
exp_status=exp_status,
|
|
230
|
+
headers=header_params if header_params else None,
|
|
231
|
+
context_msg=None,
|
|
232
|
+
aspects=aspects,
|
|
233
|
+
)
|
|
234
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
235
|
+
rtnobj = None
|
|
236
|
+
else:
|
|
237
|
+
raw_data = resp.json()
|
|
238
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
239
|
+
return rtnobj
|
|
240
|
+
|
|
241
|
+
def create_for_team_discussion_comment_in_org(self, org: str, team_slug: str, discussion_number: int, comment_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
242
|
+
"""
|
|
243
|
+
Create reaction for a team discussion comment
|
|
244
|
+
|
|
245
|
+
Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
|
|
246
|
+
|
|
247
|
+
A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
|
|
248
|
+
|
|
249
|
+
> [!NOTE]
|
|
250
|
+
> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.
|
|
251
|
+
|
|
252
|
+
OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
|
|
253
|
+
"""
|
|
254
|
+
client = self.client
|
|
255
|
+
if aspects is None:
|
|
256
|
+
aspects = client.aspects
|
|
257
|
+
|
|
258
|
+
header_params = client.headers
|
|
259
|
+
if headers is not None:
|
|
260
|
+
header_params = headers
|
|
261
|
+
|
|
262
|
+
leaf_template = "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
263
|
+
path_params = {
|
|
264
|
+
'org': org,
|
|
265
|
+
'team_slug': team_slug,
|
|
266
|
+
'discussion_number': discussion_number,
|
|
267
|
+
'comment_number': comment_number,
|
|
268
|
+
}
|
|
269
|
+
call_leaf = leaf_template.format(**path_params)
|
|
270
|
+
|
|
271
|
+
query_params = None
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
if exp_status is None:
|
|
275
|
+
exp_status = [200, 201]
|
|
276
|
+
|
|
277
|
+
resp = client.perform_call(
|
|
278
|
+
leaf=call_leaf,
|
|
279
|
+
method="POST",
|
|
280
|
+
params=query_params if query_params else None,
|
|
281
|
+
body=body,
|
|
282
|
+
exp_status=exp_status,
|
|
283
|
+
headers=header_params if header_params else None,
|
|
284
|
+
context_msg=None,
|
|
285
|
+
aspects=aspects,
|
|
286
|
+
)
|
|
287
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
288
|
+
rtnobj = None
|
|
289
|
+
else:
|
|
290
|
+
raw_data = resp.json()
|
|
291
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
292
|
+
return rtnobj
|
|
293
|
+
|
|
294
|
+
def create_for_team_discussion_comment_legacy(self, team_id: int, discussion_number: int, comment_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
295
|
+
"""
|
|
296
|
+
Create reaction for a team discussion comment (Legacy)
|
|
297
|
+
|
|
298
|
+
> [!WARNING]
|
|
299
|
+
> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.
|
|
300
|
+
|
|
301
|
+
Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
|
|
302
|
+
|
|
303
|
+
A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
|
|
304
|
+
|
|
305
|
+
OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
|
|
306
|
+
"""
|
|
307
|
+
client = self.client
|
|
308
|
+
if aspects is None:
|
|
309
|
+
aspects = client.aspects
|
|
310
|
+
|
|
311
|
+
header_params = client.headers
|
|
312
|
+
if headers is not None:
|
|
313
|
+
header_params = headers
|
|
314
|
+
|
|
315
|
+
leaf_template = "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
316
|
+
path_params = {
|
|
317
|
+
'team_id': team_id,
|
|
318
|
+
'discussion_number': discussion_number,
|
|
319
|
+
'comment_number': comment_number,
|
|
320
|
+
}
|
|
321
|
+
call_leaf = leaf_template.format(**path_params)
|
|
322
|
+
|
|
323
|
+
query_params = None
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
if exp_status is None:
|
|
327
|
+
exp_status = [201]
|
|
328
|
+
|
|
329
|
+
resp = client.perform_call(
|
|
330
|
+
leaf=call_leaf,
|
|
331
|
+
method="POST",
|
|
332
|
+
params=query_params if query_params else None,
|
|
333
|
+
body=body,
|
|
334
|
+
exp_status=exp_status,
|
|
335
|
+
headers=header_params if header_params else None,
|
|
336
|
+
context_msg=None,
|
|
337
|
+
aspects=aspects,
|
|
338
|
+
)
|
|
339
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
340
|
+
rtnval = None
|
|
341
|
+
else:
|
|
342
|
+
rtnval = resp.json()
|
|
343
|
+
return rtnval
|
|
344
|
+
|
|
345
|
+
def create_for_team_discussion_in_org(self, org: str, team_slug: str, discussion_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Reaction:
|
|
346
|
+
"""
|
|
347
|
+
Create reaction for a team discussion
|
|
348
|
+
|
|
349
|
+
Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
|
|
350
|
+
|
|
351
|
+
A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
|
|
352
|
+
|
|
353
|
+
> [!NOTE]
|
|
354
|
+
> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.
|
|
355
|
+
|
|
356
|
+
OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
|
|
357
|
+
"""
|
|
358
|
+
client = self.client
|
|
359
|
+
if aspects is None:
|
|
360
|
+
aspects = client.aspects
|
|
361
|
+
|
|
362
|
+
header_params = client.headers
|
|
363
|
+
if headers is not None:
|
|
364
|
+
header_params = headers
|
|
365
|
+
|
|
366
|
+
leaf_template = "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
367
|
+
path_params = {
|
|
368
|
+
'org': org,
|
|
369
|
+
'team_slug': team_slug,
|
|
370
|
+
'discussion_number': discussion_number,
|
|
371
|
+
}
|
|
372
|
+
call_leaf = leaf_template.format(**path_params)
|
|
373
|
+
|
|
374
|
+
query_params = None
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
if exp_status is None:
|
|
378
|
+
exp_status = [200, 201]
|
|
379
|
+
|
|
380
|
+
resp = client.perform_call(
|
|
381
|
+
leaf=call_leaf,
|
|
382
|
+
method="POST",
|
|
383
|
+
params=query_params if query_params else None,
|
|
384
|
+
body=body,
|
|
385
|
+
exp_status=exp_status,
|
|
386
|
+
headers=header_params if header_params else None,
|
|
387
|
+
context_msg=None,
|
|
388
|
+
aspects=aspects,
|
|
389
|
+
)
|
|
390
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
391
|
+
rtnobj = None
|
|
392
|
+
else:
|
|
393
|
+
raw_data = resp.json()
|
|
394
|
+
rtnobj = Reaction.from_dict(raw_data)
|
|
395
|
+
return rtnobj
|
|
396
|
+
|
|
397
|
+
def create_for_team_discussion_legacy(self, team_id: int, discussion_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
398
|
+
"""
|
|
399
|
+
Create reaction for a team discussion (Legacy)
|
|
400
|
+
|
|
401
|
+
> [!WARNING]
|
|
402
|
+
> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.
|
|
403
|
+
|
|
404
|
+
Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
|
|
405
|
+
|
|
406
|
+
A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
|
|
407
|
+
|
|
408
|
+
OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
|
|
409
|
+
"""
|
|
410
|
+
client = self.client
|
|
411
|
+
if aspects is None:
|
|
412
|
+
aspects = client.aspects
|
|
413
|
+
|
|
414
|
+
header_params = client.headers
|
|
415
|
+
if headers is not None:
|
|
416
|
+
header_params = headers
|
|
417
|
+
|
|
418
|
+
leaf_template = "/teams/{team_id}/discussions/{discussion_number}/reactions"
|
|
419
|
+
path_params = {
|
|
420
|
+
'team_id': team_id,
|
|
421
|
+
'discussion_number': discussion_number,
|
|
422
|
+
}
|
|
423
|
+
call_leaf = leaf_template.format(**path_params)
|
|
424
|
+
|
|
425
|
+
query_params = None
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
if exp_status is None:
|
|
429
|
+
exp_status = [201]
|
|
430
|
+
|
|
431
|
+
resp = client.perform_call(
|
|
432
|
+
leaf=call_leaf,
|
|
433
|
+
method="POST",
|
|
434
|
+
params=query_params if query_params else None,
|
|
435
|
+
body=body,
|
|
436
|
+
exp_status=exp_status,
|
|
437
|
+
headers=header_params if header_params else None,
|
|
438
|
+
context_msg=None,
|
|
439
|
+
aspects=aspects,
|
|
440
|
+
)
|
|
441
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
442
|
+
rtnval = None
|
|
443
|
+
else:
|
|
444
|
+
rtnval = resp.json()
|
|
445
|
+
return rtnval
|
|
446
|
+
|
|
447
|
+
def delete_for_commit_comment(self, owner: str, repo: str, comment_id: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
448
|
+
"""
|
|
449
|
+
Delete a commit comment reaction
|
|
450
|
+
|
|
451
|
+
> [!NOTE]
|
|
452
|
+
> You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`.
|
|
453
|
+
|
|
454
|
+
Delete a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment).
|
|
455
|
+
"""
|
|
456
|
+
client = self.client
|
|
457
|
+
if aspects is None:
|
|
458
|
+
aspects = client.aspects
|
|
459
|
+
|
|
460
|
+
header_params = client.headers
|
|
461
|
+
if headers is not None:
|
|
462
|
+
header_params = headers
|
|
463
|
+
|
|
464
|
+
leaf_template = "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
465
|
+
path_params = {
|
|
466
|
+
'owner': owner,
|
|
467
|
+
'repo': repo,
|
|
468
|
+
'comment_id': comment_id,
|
|
469
|
+
'reaction_id': reaction_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 = [204]
|
|
478
|
+
|
|
479
|
+
resp = client.perform_call(
|
|
480
|
+
leaf=call_leaf,
|
|
481
|
+
method="DELETE",
|
|
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 delete_for_issue(self, owner: str, repo: str, issue_number: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
496
|
+
"""
|
|
497
|
+
Delete an issue reaction
|
|
498
|
+
|
|
499
|
+
> [!NOTE]
|
|
500
|
+
> You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`.
|
|
501
|
+
|
|
502
|
+
Delete a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue).
|
|
503
|
+
"""
|
|
504
|
+
client = self.client
|
|
505
|
+
if aspects is None:
|
|
506
|
+
aspects = client.aspects
|
|
507
|
+
|
|
508
|
+
header_params = client.headers
|
|
509
|
+
if headers is not None:
|
|
510
|
+
header_params = headers
|
|
511
|
+
|
|
512
|
+
leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
513
|
+
path_params = {
|
|
514
|
+
'owner': owner,
|
|
515
|
+
'repo': repo,
|
|
516
|
+
'issue_number': issue_number,
|
|
517
|
+
'reaction_id': reaction_id,
|
|
518
|
+
}
|
|
519
|
+
call_leaf = leaf_template.format(**path_params)
|
|
520
|
+
|
|
521
|
+
query_params = None
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
if exp_status is None:
|
|
525
|
+
exp_status = [204]
|
|
526
|
+
|
|
527
|
+
resp = client.perform_call(
|
|
528
|
+
leaf=call_leaf,
|
|
529
|
+
method="DELETE",
|
|
530
|
+
params=query_params if query_params else None,
|
|
531
|
+
body=None,
|
|
532
|
+
exp_status=exp_status,
|
|
533
|
+
headers=header_params if header_params else None,
|
|
534
|
+
context_msg=None,
|
|
535
|
+
aspects=aspects,
|
|
536
|
+
)
|
|
537
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
538
|
+
rtnval = None
|
|
539
|
+
else:
|
|
540
|
+
rtnval = resp.json()
|
|
541
|
+
return rtnval
|
|
542
|
+
|
|
543
|
+
def delete_for_issue_comment(self, owner: str, repo: str, comment_id: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
544
|
+
"""
|
|
545
|
+
Delete an issue comment reaction
|
|
546
|
+
|
|
547
|
+
> [!NOTE]
|
|
548
|
+
> You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`.
|
|
549
|
+
|
|
550
|
+
Delete a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment).
|
|
551
|
+
"""
|
|
552
|
+
client = self.client
|
|
553
|
+
if aspects is None:
|
|
554
|
+
aspects = client.aspects
|
|
555
|
+
|
|
556
|
+
header_params = client.headers
|
|
557
|
+
if headers is not None:
|
|
558
|
+
header_params = headers
|
|
559
|
+
|
|
560
|
+
leaf_template = "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
561
|
+
path_params = {
|
|
562
|
+
'owner': owner,
|
|
563
|
+
'repo': repo,
|
|
564
|
+
'comment_id': comment_id,
|
|
565
|
+
'reaction_id': reaction_id,
|
|
566
|
+
}
|
|
567
|
+
call_leaf = leaf_template.format(**path_params)
|
|
568
|
+
|
|
569
|
+
query_params = None
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
if exp_status is None:
|
|
573
|
+
exp_status = [204]
|
|
574
|
+
|
|
575
|
+
resp = client.perform_call(
|
|
576
|
+
leaf=call_leaf,
|
|
577
|
+
method="DELETE",
|
|
578
|
+
params=query_params if query_params else None,
|
|
579
|
+
body=None,
|
|
580
|
+
exp_status=exp_status,
|
|
581
|
+
headers=header_params if header_params else None,
|
|
582
|
+
context_msg=None,
|
|
583
|
+
aspects=aspects,
|
|
584
|
+
)
|
|
585
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
586
|
+
rtnval = None
|
|
587
|
+
else:
|
|
588
|
+
rtnval = resp.json()
|
|
589
|
+
return rtnval
|
|
590
|
+
|
|
591
|
+
def delete_for_pull_request_comment(self, owner: str, repo: str, comment_id: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
592
|
+
"""
|
|
593
|
+
Delete a pull request comment reaction
|
|
594
|
+
|
|
595
|
+
> [!NOTE]
|
|
596
|
+
> You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.`
|
|
597
|
+
|
|
598
|
+
Delete a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request).
|
|
599
|
+
"""
|
|
600
|
+
client = self.client
|
|
601
|
+
if aspects is None:
|
|
602
|
+
aspects = client.aspects
|
|
603
|
+
|
|
604
|
+
header_params = client.headers
|
|
605
|
+
if headers is not None:
|
|
606
|
+
header_params = headers
|
|
607
|
+
|
|
608
|
+
leaf_template = "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
609
|
+
path_params = {
|
|
610
|
+
'owner': owner,
|
|
611
|
+
'repo': repo,
|
|
612
|
+
'comment_id': comment_id,
|
|
613
|
+
'reaction_id': reaction_id,
|
|
614
|
+
}
|
|
615
|
+
call_leaf = leaf_template.format(**path_params)
|
|
616
|
+
|
|
617
|
+
query_params = None
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
if exp_status is None:
|
|
621
|
+
exp_status = [204]
|
|
622
|
+
|
|
623
|
+
resp = client.perform_call(
|
|
624
|
+
leaf=call_leaf,
|
|
625
|
+
method="DELETE",
|
|
626
|
+
params=query_params if query_params else None,
|
|
627
|
+
body=None,
|
|
628
|
+
exp_status=exp_status,
|
|
629
|
+
headers=header_params if header_params else None,
|
|
630
|
+
context_msg=None,
|
|
631
|
+
aspects=aspects,
|
|
632
|
+
)
|
|
633
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
634
|
+
rtnval = None
|
|
635
|
+
else:
|
|
636
|
+
rtnval = resp.json()
|
|
637
|
+
return rtnval
|
|
638
|
+
|
|
639
|
+
def delete_for_release(self, owner: str, repo: str, release_id: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
640
|
+
"""
|
|
641
|
+
Delete a release reaction
|
|
642
|
+
|
|
643
|
+
> [!NOTE]
|
|
644
|
+
> You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id`.
|
|
645
|
+
|
|
646
|
+
Delete a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release).
|
|
647
|
+
"""
|
|
648
|
+
client = self.client
|
|
649
|
+
if aspects is None:
|
|
650
|
+
aspects = client.aspects
|
|
651
|
+
|
|
652
|
+
header_params = client.headers
|
|
653
|
+
if headers is not None:
|
|
654
|
+
header_params = headers
|
|
655
|
+
|
|
656
|
+
leaf_template = "/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
657
|
+
path_params = {
|
|
658
|
+
'owner': owner,
|
|
659
|
+
'repo': repo,
|
|
660
|
+
'release_id': release_id,
|
|
661
|
+
'reaction_id': reaction_id,
|
|
662
|
+
}
|
|
663
|
+
call_leaf = leaf_template.format(**path_params)
|
|
664
|
+
|
|
665
|
+
query_params = None
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
if exp_status is None:
|
|
669
|
+
exp_status = [204]
|
|
670
|
+
|
|
671
|
+
resp = client.perform_call(
|
|
672
|
+
leaf=call_leaf,
|
|
673
|
+
method="DELETE",
|
|
674
|
+
params=query_params if query_params else None,
|
|
675
|
+
body=None,
|
|
676
|
+
exp_status=exp_status,
|
|
677
|
+
headers=header_params if header_params else None,
|
|
678
|
+
context_msg=None,
|
|
679
|
+
aspects=aspects,
|
|
680
|
+
)
|
|
681
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
682
|
+
rtnval = None
|
|
683
|
+
else:
|
|
684
|
+
rtnval = resp.json()
|
|
685
|
+
return rtnval
|
|
686
|
+
|
|
687
|
+
def delete_for_team_discussion(self, org: str, team_slug: str, discussion_number: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
688
|
+
"""
|
|
689
|
+
Delete team discussion reaction
|
|
690
|
+
|
|
691
|
+
> [!NOTE]
|
|
692
|
+
> You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`.
|
|
693
|
+
|
|
694
|
+
Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
|
|
695
|
+
|
|
696
|
+
OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
|
|
697
|
+
"""
|
|
698
|
+
client = self.client
|
|
699
|
+
if aspects is None:
|
|
700
|
+
aspects = client.aspects
|
|
701
|
+
|
|
702
|
+
header_params = client.headers
|
|
703
|
+
if headers is not None:
|
|
704
|
+
header_params = headers
|
|
705
|
+
|
|
706
|
+
leaf_template = "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
707
|
+
path_params = {
|
|
708
|
+
'org': org,
|
|
709
|
+
'team_slug': team_slug,
|
|
710
|
+
'discussion_number': discussion_number,
|
|
711
|
+
'reaction_id': reaction_id,
|
|
712
|
+
}
|
|
713
|
+
call_leaf = leaf_template.format(**path_params)
|
|
714
|
+
|
|
715
|
+
query_params = None
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
if exp_status is None:
|
|
719
|
+
exp_status = [204]
|
|
720
|
+
|
|
721
|
+
resp = client.perform_call(
|
|
722
|
+
leaf=call_leaf,
|
|
723
|
+
method="DELETE",
|
|
724
|
+
params=query_params if query_params else None,
|
|
725
|
+
body=None,
|
|
726
|
+
exp_status=exp_status,
|
|
727
|
+
headers=header_params if header_params else None,
|
|
728
|
+
context_msg=None,
|
|
729
|
+
aspects=aspects,
|
|
730
|
+
)
|
|
731
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
732
|
+
rtnval = None
|
|
733
|
+
else:
|
|
734
|
+
rtnval = resp.json()
|
|
735
|
+
return rtnval
|
|
736
|
+
|
|
737
|
+
def delete_for_team_discussion_comment(self, org: str, team_slug: str, discussion_number: int, comment_number: int, reaction_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
|
|
738
|
+
"""
|
|
739
|
+
Delete team discussion comment reaction
|
|
740
|
+
|
|
741
|
+
> [!NOTE]
|
|
742
|
+
> You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`.
|
|
743
|
+
|
|
744
|
+
Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
|
|
745
|
+
|
|
746
|
+
OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
|
|
747
|
+
"""
|
|
748
|
+
client = self.client
|
|
749
|
+
if aspects is None:
|
|
750
|
+
aspects = client.aspects
|
|
751
|
+
|
|
752
|
+
header_params = client.headers
|
|
753
|
+
if headers is not None:
|
|
754
|
+
header_params = headers
|
|
755
|
+
|
|
756
|
+
leaf_template = "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
757
|
+
path_params = {
|
|
758
|
+
'org': org,
|
|
759
|
+
'team_slug': team_slug,
|
|
760
|
+
'discussion_number': discussion_number,
|
|
761
|
+
'comment_number': comment_number,
|
|
762
|
+
'reaction_id': reaction_id,
|
|
763
|
+
}
|
|
764
|
+
call_leaf = leaf_template.format(**path_params)
|
|
765
|
+
|
|
766
|
+
query_params = None
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
if exp_status is None:
|
|
770
|
+
exp_status = [204]
|
|
771
|
+
|
|
772
|
+
resp = client.perform_call(
|
|
773
|
+
leaf=call_leaf,
|
|
774
|
+
method="DELETE",
|
|
775
|
+
params=query_params if query_params else None,
|
|
776
|
+
body=None,
|
|
777
|
+
exp_status=exp_status,
|
|
778
|
+
headers=header_params if header_params else None,
|
|
779
|
+
context_msg=None,
|
|
780
|
+
aspects=aspects,
|
|
781
|
+
)
|
|
782
|
+
if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
|
|
783
|
+
rtnval = None
|
|
784
|
+
else:
|
|
785
|
+
rtnval = resp.json()
|
|
786
|
+
return rtnval
|
|
787
|
+
|
|
788
|
+
def list_for_commit_comment(self, owner: str, repo: str, comment_id: int, *, content: 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) -> PagedList[Reaction]:
|
|
789
|
+
"""
|
|
790
|
+
List reactions for a commit comment
|
|
791
|
+
|
|
792
|
+
List the reactions to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment).
|
|
793
|
+
"""
|
|
794
|
+
client = self.client
|
|
795
|
+
if aspects is None:
|
|
796
|
+
aspects = client.aspects
|
|
797
|
+
|
|
798
|
+
header_params = client.headers
|
|
799
|
+
if headers is not None:
|
|
800
|
+
header_params = headers
|
|
801
|
+
|
|
802
|
+
leaf_template = "/repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
803
|
+
path_params = {
|
|
804
|
+
'owner': owner,
|
|
805
|
+
'repo': repo,
|
|
806
|
+
'comment_id': comment_id,
|
|
807
|
+
}
|
|
808
|
+
call_leaf = leaf_template.format(**path_params)
|
|
809
|
+
|
|
810
|
+
query_params = {}
|
|
811
|
+
if content is not None:
|
|
812
|
+
query_params['content'] = content
|
|
813
|
+
if per_page is not None:
|
|
814
|
+
query_params['per_page'] = per_page
|
|
815
|
+
if page is not None:
|
|
816
|
+
query_params['page'] = page
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
if exp_status is None:
|
|
820
|
+
exp_status = [200]
|
|
821
|
+
|
|
822
|
+
resp = client.perform_call(
|
|
823
|
+
leaf=call_leaf,
|
|
824
|
+
method="GET",
|
|
825
|
+
params=query_params if query_params else None,
|
|
826
|
+
body=None,
|
|
827
|
+
exp_status=exp_status,
|
|
828
|
+
headers=header_params if header_params else None,
|
|
829
|
+
context_msg=None,
|
|
830
|
+
aspects=aspects,
|
|
831
|
+
)
|
|
832
|
+
raw_data = resp.json()
|
|
833
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
834
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
835
|
+
return rtnval
|
|
836
|
+
|
|
837
|
+
def list_for_issue(self, owner: str, repo: str, issue_number: int, *, content: 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) -> PagedList[Reaction]:
|
|
838
|
+
"""
|
|
839
|
+
List reactions for an issue
|
|
840
|
+
|
|
841
|
+
List the reactions to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue).
|
|
842
|
+
"""
|
|
843
|
+
client = self.client
|
|
844
|
+
if aspects is None:
|
|
845
|
+
aspects = client.aspects
|
|
846
|
+
|
|
847
|
+
header_params = client.headers
|
|
848
|
+
if headers is not None:
|
|
849
|
+
header_params = headers
|
|
850
|
+
|
|
851
|
+
leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
852
|
+
path_params = {
|
|
853
|
+
'owner': owner,
|
|
854
|
+
'repo': repo,
|
|
855
|
+
'issue_number': issue_number,
|
|
856
|
+
}
|
|
857
|
+
call_leaf = leaf_template.format(**path_params)
|
|
858
|
+
|
|
859
|
+
query_params = {}
|
|
860
|
+
if content is not None:
|
|
861
|
+
query_params['content'] = content
|
|
862
|
+
if per_page is not None:
|
|
863
|
+
query_params['per_page'] = per_page
|
|
864
|
+
if page is not None:
|
|
865
|
+
query_params['page'] = page
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
if exp_status is None:
|
|
869
|
+
exp_status = [200]
|
|
870
|
+
|
|
871
|
+
resp = client.perform_call(
|
|
872
|
+
leaf=call_leaf,
|
|
873
|
+
method="GET",
|
|
874
|
+
params=query_params if query_params else None,
|
|
875
|
+
body=None,
|
|
876
|
+
exp_status=exp_status,
|
|
877
|
+
headers=header_params if header_params else None,
|
|
878
|
+
context_msg=None,
|
|
879
|
+
aspects=aspects,
|
|
880
|
+
)
|
|
881
|
+
raw_data = resp.json()
|
|
882
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
883
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
884
|
+
return rtnval
|
|
885
|
+
|
|
886
|
+
def list_for_issue_comment(self, owner: str, repo: str, comment_id: int, *, content: 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) -> PagedList[Reaction]:
|
|
887
|
+
"""
|
|
888
|
+
List reactions for an issue comment
|
|
889
|
+
|
|
890
|
+
List the reactions to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment).
|
|
891
|
+
"""
|
|
892
|
+
client = self.client
|
|
893
|
+
if aspects is None:
|
|
894
|
+
aspects = client.aspects
|
|
895
|
+
|
|
896
|
+
header_params = client.headers
|
|
897
|
+
if headers is not None:
|
|
898
|
+
header_params = headers
|
|
899
|
+
|
|
900
|
+
leaf_template = "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
901
|
+
path_params = {
|
|
902
|
+
'owner': owner,
|
|
903
|
+
'repo': repo,
|
|
904
|
+
'comment_id': comment_id,
|
|
905
|
+
}
|
|
906
|
+
call_leaf = leaf_template.format(**path_params)
|
|
907
|
+
|
|
908
|
+
query_params = {}
|
|
909
|
+
if content is not None:
|
|
910
|
+
query_params['content'] = content
|
|
911
|
+
if per_page is not None:
|
|
912
|
+
query_params['per_page'] = per_page
|
|
913
|
+
if page is not None:
|
|
914
|
+
query_params['page'] = page
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
if exp_status is None:
|
|
918
|
+
exp_status = [200]
|
|
919
|
+
|
|
920
|
+
resp = client.perform_call(
|
|
921
|
+
leaf=call_leaf,
|
|
922
|
+
method="GET",
|
|
923
|
+
params=query_params if query_params else None,
|
|
924
|
+
body=None,
|
|
925
|
+
exp_status=exp_status,
|
|
926
|
+
headers=header_params if header_params else None,
|
|
927
|
+
context_msg=None,
|
|
928
|
+
aspects=aspects,
|
|
929
|
+
)
|
|
930
|
+
raw_data = resp.json()
|
|
931
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
932
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
933
|
+
return rtnval
|
|
934
|
+
|
|
935
|
+
def list_for_pull_request_review_comment(self, owner: str, repo: str, comment_id: int, *, content: 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) -> PagedList[Reaction]:
|
|
936
|
+
"""
|
|
937
|
+
List reactions for a pull request review comment
|
|
938
|
+
|
|
939
|
+
List the reactions to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request).
|
|
940
|
+
"""
|
|
941
|
+
client = self.client
|
|
942
|
+
if aspects is None:
|
|
943
|
+
aspects = client.aspects
|
|
944
|
+
|
|
945
|
+
header_params = client.headers
|
|
946
|
+
if headers is not None:
|
|
947
|
+
header_params = headers
|
|
948
|
+
|
|
949
|
+
leaf_template = "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
950
|
+
path_params = {
|
|
951
|
+
'owner': owner,
|
|
952
|
+
'repo': repo,
|
|
953
|
+
'comment_id': comment_id,
|
|
954
|
+
}
|
|
955
|
+
call_leaf = leaf_template.format(**path_params)
|
|
956
|
+
|
|
957
|
+
query_params = {}
|
|
958
|
+
if content is not None:
|
|
959
|
+
query_params['content'] = content
|
|
960
|
+
if per_page is not None:
|
|
961
|
+
query_params['per_page'] = per_page
|
|
962
|
+
if page is not None:
|
|
963
|
+
query_params['page'] = page
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
if exp_status is None:
|
|
967
|
+
exp_status = [200]
|
|
968
|
+
|
|
969
|
+
resp = client.perform_call(
|
|
970
|
+
leaf=call_leaf,
|
|
971
|
+
method="GET",
|
|
972
|
+
params=query_params if query_params else None,
|
|
973
|
+
body=None,
|
|
974
|
+
exp_status=exp_status,
|
|
975
|
+
headers=header_params if header_params else None,
|
|
976
|
+
context_msg=None,
|
|
977
|
+
aspects=aspects,
|
|
978
|
+
)
|
|
979
|
+
raw_data = resp.json()
|
|
980
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
981
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
982
|
+
return rtnval
|
|
983
|
+
|
|
984
|
+
def list_for_release(self, owner: str, repo: str, release_id: int, *, content: 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) -> PagedList[Reaction]:
|
|
985
|
+
"""
|
|
986
|
+
List reactions for a release
|
|
987
|
+
|
|
988
|
+
List the reactions to a [release](https://docs.github.com/rest/releases/releases#get-a-release).
|
|
989
|
+
"""
|
|
990
|
+
client = self.client
|
|
991
|
+
if aspects is None:
|
|
992
|
+
aspects = client.aspects
|
|
993
|
+
|
|
994
|
+
header_params = client.headers
|
|
995
|
+
if headers is not None:
|
|
996
|
+
header_params = headers
|
|
997
|
+
|
|
998
|
+
leaf_template = "/repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
999
|
+
path_params = {
|
|
1000
|
+
'owner': owner,
|
|
1001
|
+
'repo': repo,
|
|
1002
|
+
'release_id': release_id,
|
|
1003
|
+
}
|
|
1004
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1005
|
+
|
|
1006
|
+
query_params = {}
|
|
1007
|
+
if content is not None:
|
|
1008
|
+
query_params['content'] = content
|
|
1009
|
+
if per_page is not None:
|
|
1010
|
+
query_params['per_page'] = per_page
|
|
1011
|
+
if page is not None:
|
|
1012
|
+
query_params['page'] = page
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
if exp_status is None:
|
|
1016
|
+
exp_status = [200]
|
|
1017
|
+
|
|
1018
|
+
resp = client.perform_call(
|
|
1019
|
+
leaf=call_leaf,
|
|
1020
|
+
method="GET",
|
|
1021
|
+
params=query_params if query_params else None,
|
|
1022
|
+
body=None,
|
|
1023
|
+
exp_status=exp_status,
|
|
1024
|
+
headers=header_params if header_params else None,
|
|
1025
|
+
context_msg=None,
|
|
1026
|
+
aspects=aspects,
|
|
1027
|
+
)
|
|
1028
|
+
raw_data = resp.json()
|
|
1029
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
1030
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
1031
|
+
return rtnval
|
|
1032
|
+
|
|
1033
|
+
def list_for_team_discussion_comment_in_org(self, org: str, team_slug: str, discussion_number: int, comment_number: int, *, content: 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) -> PagedList[Reaction]:
|
|
1034
|
+
"""
|
|
1035
|
+
List reactions for a team discussion comment
|
|
1036
|
+
|
|
1037
|
+
List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
|
|
1038
|
+
|
|
1039
|
+
> [!NOTE]
|
|
1040
|
+
> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.
|
|
1041
|
+
|
|
1042
|
+
OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
|
|
1043
|
+
"""
|
|
1044
|
+
client = self.client
|
|
1045
|
+
if aspects is None:
|
|
1046
|
+
aspects = client.aspects
|
|
1047
|
+
|
|
1048
|
+
header_params = client.headers
|
|
1049
|
+
if headers is not None:
|
|
1050
|
+
header_params = headers
|
|
1051
|
+
|
|
1052
|
+
leaf_template = "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
1053
|
+
path_params = {
|
|
1054
|
+
'org': org,
|
|
1055
|
+
'team_slug': team_slug,
|
|
1056
|
+
'discussion_number': discussion_number,
|
|
1057
|
+
'comment_number': comment_number,
|
|
1058
|
+
}
|
|
1059
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1060
|
+
|
|
1061
|
+
query_params = {}
|
|
1062
|
+
if content is not None:
|
|
1063
|
+
query_params['content'] = content
|
|
1064
|
+
if per_page is not None:
|
|
1065
|
+
query_params['per_page'] = per_page
|
|
1066
|
+
if page is not None:
|
|
1067
|
+
query_params['page'] = page
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
if exp_status is None:
|
|
1071
|
+
exp_status = [200]
|
|
1072
|
+
|
|
1073
|
+
resp = client.perform_call(
|
|
1074
|
+
leaf=call_leaf,
|
|
1075
|
+
method="GET",
|
|
1076
|
+
params=query_params if query_params else None,
|
|
1077
|
+
body=None,
|
|
1078
|
+
exp_status=exp_status,
|
|
1079
|
+
headers=header_params if header_params else None,
|
|
1080
|
+
context_msg=None,
|
|
1081
|
+
aspects=aspects,
|
|
1082
|
+
)
|
|
1083
|
+
raw_data = resp.json()
|
|
1084
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
1085
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
1086
|
+
return rtnval
|
|
1087
|
+
|
|
1088
|
+
def list_for_team_discussion_comment_legacy(self, team_id: int, discussion_number: int, comment_number: int, *, content: 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) -> PagedList[Reaction]:
|
|
1089
|
+
"""
|
|
1090
|
+
List reactions for a team discussion comment (Legacy)
|
|
1091
|
+
|
|
1092
|
+
> [!WARNING]
|
|
1093
|
+
> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.
|
|
1094
|
+
|
|
1095
|
+
List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
|
|
1096
|
+
|
|
1097
|
+
OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
|
|
1098
|
+
"""
|
|
1099
|
+
client = self.client
|
|
1100
|
+
if aspects is None:
|
|
1101
|
+
aspects = client.aspects
|
|
1102
|
+
|
|
1103
|
+
header_params = client.headers
|
|
1104
|
+
if headers is not None:
|
|
1105
|
+
header_params = headers
|
|
1106
|
+
|
|
1107
|
+
leaf_template = "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
1108
|
+
path_params = {
|
|
1109
|
+
'team_id': team_id,
|
|
1110
|
+
'discussion_number': discussion_number,
|
|
1111
|
+
'comment_number': comment_number,
|
|
1112
|
+
}
|
|
1113
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1114
|
+
|
|
1115
|
+
query_params = {}
|
|
1116
|
+
if content is not None:
|
|
1117
|
+
query_params['content'] = content
|
|
1118
|
+
if per_page is not None:
|
|
1119
|
+
query_params['per_page'] = per_page
|
|
1120
|
+
if page is not None:
|
|
1121
|
+
query_params['page'] = page
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
if exp_status is None:
|
|
1125
|
+
exp_status = [200]
|
|
1126
|
+
|
|
1127
|
+
resp = client.perform_call(
|
|
1128
|
+
leaf=call_leaf,
|
|
1129
|
+
method="GET",
|
|
1130
|
+
params=query_params if query_params else None,
|
|
1131
|
+
body=None,
|
|
1132
|
+
exp_status=exp_status,
|
|
1133
|
+
headers=header_params if header_params else None,
|
|
1134
|
+
context_msg=None,
|
|
1135
|
+
aspects=aspects,
|
|
1136
|
+
)
|
|
1137
|
+
raw_data = resp.json()
|
|
1138
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
1139
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
1140
|
+
return rtnval
|
|
1141
|
+
|
|
1142
|
+
def list_for_team_discussion_in_org(self, org: str, team_slug: str, discussion_number: int, *, content: 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) -> PagedList[Reaction]:
|
|
1143
|
+
"""
|
|
1144
|
+
List reactions for a team discussion
|
|
1145
|
+
|
|
1146
|
+
List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
|
|
1147
|
+
|
|
1148
|
+
> [!NOTE]
|
|
1149
|
+
> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.
|
|
1150
|
+
|
|
1151
|
+
OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
|
|
1152
|
+
"""
|
|
1153
|
+
client = self.client
|
|
1154
|
+
if aspects is None:
|
|
1155
|
+
aspects = client.aspects
|
|
1156
|
+
|
|
1157
|
+
header_params = client.headers
|
|
1158
|
+
if headers is not None:
|
|
1159
|
+
header_params = headers
|
|
1160
|
+
|
|
1161
|
+
leaf_template = "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
1162
|
+
path_params = {
|
|
1163
|
+
'org': org,
|
|
1164
|
+
'team_slug': team_slug,
|
|
1165
|
+
'discussion_number': discussion_number,
|
|
1166
|
+
}
|
|
1167
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1168
|
+
|
|
1169
|
+
query_params = {}
|
|
1170
|
+
if content is not None:
|
|
1171
|
+
query_params['content'] = content
|
|
1172
|
+
if per_page is not None:
|
|
1173
|
+
query_params['per_page'] = per_page
|
|
1174
|
+
if page is not None:
|
|
1175
|
+
query_params['page'] = page
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
if exp_status is None:
|
|
1179
|
+
exp_status = [200]
|
|
1180
|
+
|
|
1181
|
+
resp = client.perform_call(
|
|
1182
|
+
leaf=call_leaf,
|
|
1183
|
+
method="GET",
|
|
1184
|
+
params=query_params if query_params else None,
|
|
1185
|
+
body=None,
|
|
1186
|
+
exp_status=exp_status,
|
|
1187
|
+
headers=header_params if header_params else None,
|
|
1188
|
+
context_msg=None,
|
|
1189
|
+
aspects=aspects,
|
|
1190
|
+
)
|
|
1191
|
+
raw_data = resp.json()
|
|
1192
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
1193
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
1194
|
+
return rtnval
|
|
1195
|
+
|
|
1196
|
+
def list_for_team_discussion_legacy(self, team_id: int, discussion_number: int, *, content: 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) -> PagedList[Reaction]:
|
|
1197
|
+
"""
|
|
1198
|
+
List reactions for a team discussion (Legacy)
|
|
1199
|
+
|
|
1200
|
+
> [!WARNING]
|
|
1201
|
+
> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.
|
|
1202
|
+
|
|
1203
|
+
List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
|
|
1204
|
+
|
|
1205
|
+
OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
|
|
1206
|
+
"""
|
|
1207
|
+
client = self.client
|
|
1208
|
+
if aspects is None:
|
|
1209
|
+
aspects = client.aspects
|
|
1210
|
+
|
|
1211
|
+
header_params = client.headers
|
|
1212
|
+
if headers is not None:
|
|
1213
|
+
header_params = headers
|
|
1214
|
+
|
|
1215
|
+
leaf_template = "/teams/{team_id}/discussions/{discussion_number}/reactions"
|
|
1216
|
+
path_params = {
|
|
1217
|
+
'team_id': team_id,
|
|
1218
|
+
'discussion_number': discussion_number,
|
|
1219
|
+
}
|
|
1220
|
+
call_leaf = leaf_template.format(**path_params)
|
|
1221
|
+
|
|
1222
|
+
query_params = {}
|
|
1223
|
+
if content is not None:
|
|
1224
|
+
query_params['content'] = content
|
|
1225
|
+
if per_page is not None:
|
|
1226
|
+
query_params['per_page'] = per_page
|
|
1227
|
+
if page is not None:
|
|
1228
|
+
query_params['page'] = page
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
if exp_status is None:
|
|
1232
|
+
exp_status = [200]
|
|
1233
|
+
|
|
1234
|
+
resp = client.perform_call(
|
|
1235
|
+
leaf=call_leaf,
|
|
1236
|
+
method="GET",
|
|
1237
|
+
params=query_params if query_params else None,
|
|
1238
|
+
body=None,
|
|
1239
|
+
exp_status=exp_status,
|
|
1240
|
+
headers=header_params if header_params else None,
|
|
1241
|
+
context_msg=None,
|
|
1242
|
+
aspects=aspects,
|
|
1243
|
+
)
|
|
1244
|
+
raw_data = resp.json()
|
|
1245
|
+
items = [self._parse_item(item, Reaction) for item in raw_data]
|
|
1246
|
+
rtnval = PagedList[Reaction](items, dict(resp.headers), raw_data)
|
|
1247
|
+
return rtnval
|