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.
Files changed (579) hide show
  1. ccai/restclient/github/public/__init__.py +0 -0
  2. ccai/restclient/github/public/generation/githubrestclientgenerator.py +56 -0
  3. ccai/restclient/github/public/generation/specs/api-hints.json +172 -0
  4. ccai/restclient/github/public/generation/specs/api-public.json +306020 -0
  5. ccai/restclient/github/public/generation/specs/pagination-hints.json +31 -0
  6. ccai/restclient/github/public/githubpublicrestclient.py +262 -0
  7. ccai/restclient/github/public/githubrestclientbase.py +120 -0
  8. ccai/restclient/github/public/groups/__init__.py +0 -0
  9. ccai/restclient/github/public/groups/actions.py +8042 -0
  10. ccai/restclient/github/public/groups/activity.py +1488 -0
  11. ccai/restclient/github/public/groups/apiinsights.py +478 -0
  12. ccai/restclient/github/public/groups/apps.py +1662 -0
  13. ccai/restclient/github/public/groups/billing.py +401 -0
  14. ccai/restclient/github/public/groups/campaigns.py +262 -0
  15. ccai/restclient/github/public/groups/checks.py +632 -0
  16. ccai/restclient/github/public/groups/classroom.py +276 -0
  17. ccai/restclient/github/public/groups/codescanning.py +1203 -0
  18. ccai/restclient/github/public/groups/codesecurity.py +997 -0
  19. ccai/restclient/github/public/groups/codesofconduct.py +92 -0
  20. ccai/restclient/github/public/groups/codespaces.py +2271 -0
  21. ccai/restclient/github/public/groups/copilot.py +517 -0
  22. ccai/restclient/github/public/groups/credentials.py +62 -0
  23. ccai/restclient/github/public/groups/dependabot.py +1155 -0
  24. ccai/restclient/github/public/groups/dependencygraph.py +152 -0
  25. ccai/restclient/github/public/groups/emojis.py +51 -0
  26. ccai/restclient/github/public/groups/gists.py +909 -0
  27. ccai/restclient/github/public/groups/git.py +734 -0
  28. ccai/restclient/github/public/groups/gitignore.py +96 -0
  29. ccai/restclient/github/public/groups/hostedcompute.py +290 -0
  30. ccai/restclient/github/public/groups/interactions.py +389 -0
  31. ccai/restclient/github/public/groups/issues.py +2460 -0
  32. ccai/restclient/github/public/groups/licenses.py +153 -0
  33. ccai/restclient/github/public/groups/markdown.py +88 -0
  34. ccai/restclient/github/public/groups/meta.py +213 -0
  35. ccai/restclient/github/public/groups/migrations.py +1079 -0
  36. ccai/restclient/github/public/groups/oidc.py +102 -0
  37. ccai/restclient/github/public/groups/orgs.py +3958 -0
  38. ccai/restclient/github/public/groups/packages.py +1316 -0
  39. ccai/restclient/github/public/groups/privateregistries.py +294 -0
  40. ccai/restclient/github/public/groups/projectsclassic.py +1154 -0
  41. ccai/restclient/github/public/groups/pulls.py +1469 -0
  42. ccai/restclient/github/public/groups/ratelimit.py +68 -0
  43. ccai/restclient/github/public/groups/reactions.py +1247 -0
  44. ccai/restclient/github/public/groups/repos.py +9741 -0
  45. ccai/restclient/github/public/groups/search.py +417 -0
  46. ccai/restclient/github/public/groups/secretscanning.py +568 -0
  47. ccai/restclient/github/public/groups/securityadvisories.py +541 -0
  48. ccai/restclient/github/public/groups/teams.py +2985 -0
  49. ccai/restclient/github/public/groups/users.py +2054 -0
  50. ccai/restclient/github/public/py.typed +0 -0
  51. ccai/restclient/github/public/schemas/__init__.py +0 -0
  52. ccai/restclient/github/public/schemas/actions.py +418 -0
  53. ccai/restclient/github/public/schemas/activity.py +95 -0
  54. ccai/restclient/github/public/schemas/actor.py +20 -0
  55. ccai/restclient/github/public/schemas/addedtoprojectissueevent.py +24 -0
  56. ccai/restclient/github/public/schemas/apps.py +151 -0
  57. ccai/restclient/github/public/schemas/assignedissueevent.py +25 -0
  58. ccai/restclient/github/public/schemas/authenticationtoken.py +20 -0
  59. ccai/restclient/github/public/schemas/automerge.py +16 -0
  60. ccai/restclient/github/public/schemas/basicerror.py +16 -0
  61. ccai/restclient/github/public/schemas/billing.py +27 -0
  62. ccai/restclient/github/public/schemas/billingusagereport.py +12 -0
  63. ccai/restclient/github/public/schemas/billingusagereportuser.py +12 -0
  64. ccai/restclient/github/public/schemas/campaigns.py +27 -0
  65. ccai/restclient/github/public/schemas/checkrunwithsimplechecksuite.py +31 -0
  66. ccai/restclient/github/public/schemas/checks.py +80 -0
  67. ccai/restclient/github/public/schemas/classroom.py +109 -0
  68. ccai/restclient/github/public/schemas/codeofconductsimple.py +18 -0
  69. ccai/restclient/github/public/schemas/codescanning.py +197 -0
  70. ccai/restclient/github/public/schemas/codescanningalertlocation.py +17 -0
  71. ccai/restclient/github/public/schemas/codescanningalertrule.py +20 -0
  72. ccai/restclient/github/public/schemas/codescanningalertrulesummary.py +20 -0
  73. ccai/restclient/github/public/schemas/codescanninganalysistool.py +14 -0
  74. ccai/restclient/github/public/schemas/codescanningautofixcommitsresponse.py +11 -0
  75. ccai/restclient/github/public/schemas/codescanningdefaultsetupupdateresponse.py +15 -0
  76. ccai/restclient/github/public/schemas/codescanningsarifsreceipt.py +11 -0
  77. ccai/restclient/github/public/schemas/codescanningvariantanalysisrepository.py +20 -0
  78. ccai/restclient/github/public/schemas/codescanningvariantanalysisskippedrepogroup.py +13 -0
  79. ccai/restclient/github/public/schemas/codesecurity.py +73 -0
  80. ccai/restclient/github/public/schemas/codesofconduct.py +19 -0
  81. ccai/restclient/github/public/schemas/codespaces.py +130 -0
  82. ccai/restclient/github/public/schemas/codespacewithfullrepository.py +45 -0
  83. ccai/restclient/github/public/schemas/commit.py +25 -0
  84. ccai/restclient/github/public/schemas/contenttree.py +27 -0
  85. ccai/restclient/github/public/schemas/convertednotetoissueissueevent.py +24 -0
  86. ccai/restclient/github/public/schemas/copilot.py +50 -0
  87. ccai/restclient/github/public/schemas/copilotdotcomchat.py +16 -0
  88. ccai/restclient/github/public/schemas/copilotdotcompullrequests.py +16 -0
  89. ccai/restclient/github/public/schemas/copilotidechat.py +16 -0
  90. ccai/restclient/github/public/schemas/copilotidecodecompletions.py +17 -0
  91. ccai/restclient/github/public/schemas/copilotorganizationseatbreakdown.py +18 -0
  92. ccai/restclient/github/public/schemas/cvssseverities.py +13 -0
  93. ccai/restclient/github/public/schemas/demilestonedissueevent.py +24 -0
  94. ccai/restclient/github/public/schemas/dependabot.py +87 -0
  95. ccai/restclient/github/public/schemas/dependabotalertpackage.py +14 -0
  96. ccai/restclient/github/public/schemas/dependabotalertsecurityadvisory.py +29 -0
  97. ccai/restclient/github/public/schemas/dependabotalertsecurityvulnerability.py +18 -0
  98. ccai/restclient/github/public/schemas/dependency.py +16 -0
  99. ccai/restclient/github/public/schemas/dependencygraph.py +29 -0
  100. ccai/restclient/github/public/schemas/deploymentsimple.py +28 -0
  101. ccai/restclient/github/public/schemas/discussion.py +37 -0
  102. ccai/restclient/github/public/schemas/enterprise.py +24 -0
  103. ccai/restclient/github/public/schemas/enterpriseteam.py +27 -0
  104. ccai/restclient/github/public/schemas/enterprisewebhooks.py +26 -0
  105. ccai/restclient/github/public/schemas/gisthistory.py +19 -0
  106. ccai/restclient/github/public/schemas/gists.py +88 -0
  107. ccai/restclient/github/public/schemas/git.py +71 -0
  108. ccai/restclient/github/public/schemas/gitignore.py +14 -0
  109. ccai/restclient/github/public/schemas/hookdelivery.py +29 -0
  110. ccai/restclient/github/public/schemas/hookdeliveryitem.py +26 -0
  111. ccai/restclient/github/public/schemas/hookresponse.py +14 -0
  112. ccai/restclient/github/public/schemas/hostedcompute.py +30 -0
  113. ccai/restclient/github/public/schemas/installation.py +35 -0
  114. ccai/restclient/github/public/schemas/installationtoken.py +22 -0
  115. ccai/restclient/github/public/schemas/interactions.py +23 -0
  116. ccai/restclient/github/public/schemas/issuedependenciessummary.py +13 -0
  117. ccai/restclient/github/public/schemas/issueeventdismissedreview.py +15 -0
  118. ccai/restclient/github/public/schemas/issueeventlabel.py +16 -0
  119. ccai/restclient/github/public/schemas/issueeventmilestone.py +13 -0
  120. ccai/restclient/github/public/schemas/issueeventprojectcard.py +18 -0
  121. ccai/restclient/github/public/schemas/issueeventrename.py +14 -0
  122. ccai/restclient/github/public/schemas/issuefieldvalue.py +19 -0
  123. ccai/restclient/github/public/schemas/issues.py +135 -0
  124. ccai/restclient/github/public/schemas/labeledissueevent.py +24 -0
  125. ccai/restclient/github/public/schemas/licenses.py +58 -0
  126. ccai/restclient/github/public/schemas/link.py +13 -0
  127. ccai/restclient/github/public/schemas/linkwithtype.py +14 -0
  128. ccai/restclient/github/public/schemas/lockedissueevent.py +24 -0
  129. ccai/restclient/github/public/schemas/manifest.py +15 -0
  130. ccai/restclient/github/public/schemas/marketplaceaccount.py +18 -0
  131. ccai/restclient/github/public/schemas/mergegroup.py +17 -0
  132. ccai/restclient/github/public/schemas/meta.py +67 -0
  133. ccai/restclient/github/public/schemas/migrations.py +84 -0
  134. ccai/restclient/github/public/schemas/milestonedissueevent.py +24 -0
  135. ccai/restclient/github/public/schemas/minimalrepository.py +102 -0
  136. ccai/restclient/github/public/schemas/movedcolumninprojectissueevent.py +24 -0
  137. ccai/restclient/github/public/schemas/nullableactionshostedrunnerpoolimage.py +16 -0
  138. ccai/restclient/github/public/schemas/nullablecodeofconductsimple.py +18 -0
  139. ccai/restclient/github/public/schemas/nullablecodespacemachine.py +21 -0
  140. ccai/restclient/github/public/schemas/nullablecollaborator.py +37 -0
  141. ccai/restclient/github/public/schemas/nullablecommunityhealthfile.py +11 -0
  142. ccai/restclient/github/public/schemas/nullablegituser.py +15 -0
  143. ccai/restclient/github/public/schemas/nullableintegration.py +28 -0
  144. ccai/restclient/github/public/schemas/nullableissue.py +52 -0
  145. ccai/restclient/github/public/schemas/nullablelicensesimple.py +20 -0
  146. ccai/restclient/github/public/schemas/nullablemilestone.py +30 -0
  147. ccai/restclient/github/public/schemas/nullableminimalrepository.py +102 -0
  148. ccai/restclient/github/public/schemas/nullableorganizationsimple.py +26 -0
  149. ccai/restclient/github/public/schemas/nullableprojectsv2statusupdate.py +24 -0
  150. ccai/restclient/github/public/schemas/nullablerepository.py +110 -0
  151. ccai/restclient/github/public/schemas/nullablerepositorywebhooks.py +115 -0
  152. ccai/restclient/github/public/schemas/nullablescopedinstallation.py +18 -0
  153. ccai/restclient/github/public/schemas/nullablesimplecommit.py +20 -0
  154. ccai/restclient/github/public/schemas/nullablesimplerepository.py +60 -0
  155. ccai/restclient/github/public/schemas/nullablesimpleuser.py +36 -0
  156. ccai/restclient/github/public/schemas/nullableteamsimple.py +27 -0
  157. ccai/restclient/github/public/schemas/oidc.py +15 -0
  158. ccai/restclient/github/public/schemas/organizationinvitation.py +26 -0
  159. ccai/restclient/github/public/schemas/organizationsimplewebhooks.py +27 -0
  160. ccai/restclient/github/public/schemas/orgprivateregistryconfigurationwithselectedrepositories.py +21 -0
  161. ccai/restclient/github/public/schemas/orgs.py +332 -0
  162. ccai/restclient/github/public/schemas/packages.py +42 -0
  163. ccai/restclient/github/public/schemas/pagebuildstatus.py +14 -0
  164. ccai/restclient/github/public/schemas/pageshttpscertificate.py +15 -0
  165. ccai/restclient/github/public/schemas/pagessourcehash.py +11 -0
  166. ccai/restclient/github/public/schemas/personalaccesstokenrequest.py +28 -0
  167. ccai/restclient/github/public/schemas/privateregistries.py +20 -0
  168. ccai/restclient/github/public/schemas/projectsclassic.py +70 -0
  169. ccai/restclient/github/public/schemas/projectsv2.py +31 -0
  170. ccai/restclient/github/public/schemas/projectsv2item.py +23 -0
  171. ccai/restclient/github/public/schemas/projectsv2iterationsetting.py +20 -0
  172. ccai/restclient/github/public/schemas/projectsv2singleselectoption.py +18 -0
  173. ccai/restclient/github/public/schemas/projectsv2statusupdate.py +24 -0
  174. ccai/restclient/github/public/schemas/protectedbranchrequiredstatuscheck.py +20 -0
  175. ccai/restclient/github/public/schemas/publicip.py +15 -0
  176. ccai/restclient/github/public/schemas/pullrequestminimal.py +16 -0
  177. ccai/restclient/github/public/schemas/pullrequestsimple.py +50 -0
  178. ccai/restclient/github/public/schemas/pulls.py +185 -0
  179. ccai/restclient/github/public/schemas/ratelimit.py +23 -0
  180. ccai/restclient/github/public/schemas/reactions.py +17 -0
  181. ccai/restclient/github/public/schemas/referencedworkflow.py +15 -0
  182. ccai/restclient/github/public/schemas/removedfromprojectissueevent.py +24 -0
  183. ccai/restclient/github/public/schemas/renamedissueevent.py +24 -0
  184. ccai/restclient/github/public/schemas/repos.py +952 -0
  185. ccai/restclient/github/public/schemas/repository.py +110 -0
  186. ccai/restclient/github/public/schemas/repositoryadvisorycredit.py +15 -0
  187. ccai/restclient/github/public/schemas/repositoryadvisoryvulnerability.py +18 -0
  188. ccai/restclient/github/public/schemas/repositoryrulebranchnamepattern.py +16 -0
  189. ccai/restclient/github/public/schemas/repositoryrulecodescanning.py +16 -0
  190. ccai/restclient/github/public/schemas/repositoryrulecommitauthoremailpattern.py +16 -0
  191. ccai/restclient/github/public/schemas/repositoryrulecommitmessagepattern.py +16 -0
  192. ccai/restclient/github/public/schemas/repositoryrulecommitteremailpattern.py +16 -0
  193. ccai/restclient/github/public/schemas/repositoryrulecreation.py +13 -0
  194. ccai/restclient/github/public/schemas/repositoryruledeletion.py +13 -0
  195. ccai/restclient/github/public/schemas/repositoryrulefileextensionrestriction.py +16 -0
  196. ccai/restclient/github/public/schemas/repositoryrulefilepathrestriction.py +16 -0
  197. ccai/restclient/github/public/schemas/repositoryrulemaxfilepathlength.py +16 -0
  198. ccai/restclient/github/public/schemas/repositoryrulemaxfilesize.py +16 -0
  199. ccai/restclient/github/public/schemas/repositoryrulemergequeue.py +16 -0
  200. ccai/restclient/github/public/schemas/repositoryrulenonfastforward.py +13 -0
  201. ccai/restclient/github/public/schemas/repositoryruleparamscodescanningtool.py +15 -0
  202. ccai/restclient/github/public/schemas/repositoryruleparamsrequiredreviewerconfiguration.py +17 -0
  203. ccai/restclient/github/public/schemas/repositoryruleparamsrestrictedcommits.py +14 -0
  204. ccai/restclient/github/public/schemas/repositoryruleparamsreviewer.py +14 -0
  205. ccai/restclient/github/public/schemas/repositoryruleparamsstatuscheckconfiguration.py +14 -0
  206. ccai/restclient/github/public/schemas/repositoryruleparamsworkflowfilereference.py +16 -0
  207. ccai/restclient/github/public/schemas/repositoryrulepullrequest.py +16 -0
  208. ccai/restclient/github/public/schemas/repositoryrulerequireddeployments.py +16 -0
  209. ccai/restclient/github/public/schemas/repositoryrulerequiredlinearhistory.py +13 -0
  210. ccai/restclient/github/public/schemas/repositoryrulerequiredsignatures.py +13 -0
  211. ccai/restclient/github/public/schemas/repositoryrulerequiredstatuschecks.py +16 -0
  212. ccai/restclient/github/public/schemas/repositoryrulerulesetinfo.py +15 -0
  213. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositoryidtarget.py +15 -0
  214. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorynametarget.py +15 -0
  215. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertyspec.py +17 -0
  216. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertytarget.py +15 -0
  217. ccai/restclient/github/public/schemas/repositoryruletagnamepattern.py +16 -0
  218. ccai/restclient/github/public/schemas/repositoryruleupdate.py +16 -0
  219. ccai/restclient/github/public/schemas/repositoryruleviolationerror.py +18 -0
  220. ccai/restclient/github/public/schemas/repositoryruleworkflows.py +16 -0
  221. ccai/restclient/github/public/schemas/repositorywebhooks.py +115 -0
  222. ccai/restclient/github/public/schemas/reviewdismissedissueevent.py +24 -0
  223. ccai/restclient/github/public/schemas/reviewrequestedissueevent.py +26 -0
  224. ccai/restclient/github/public/schemas/reviewrequestremovedissueevent.py +26 -0
  225. ccai/restclient/github/public/schemas/rulesetversion.py +17 -0
  226. ccai/restclient/github/public/schemas/runnerlabel.py +15 -0
  227. ccai/restclient/github/public/schemas/scimerror.py +20 -0
  228. ccai/restclient/github/public/schemas/search.py +263 -0
  229. ccai/restclient/github/public/schemas/secretscanning.py +96 -0
  230. ccai/restclient/github/public/schemas/secretscanningalertwebhook.py +33 -0
  231. ccai/restclient/github/public/schemas/secretscanninglocationcommit.py +21 -0
  232. ccai/restclient/github/public/schemas/secretscanninglocationdiscussionbody.py +13 -0
  233. ccai/restclient/github/public/schemas/secretscanninglocationdiscussioncomment.py +13 -0
  234. ccai/restclient/github/public/schemas/secretscanninglocationdiscussiontitle.py +13 -0
  235. ccai/restclient/github/public/schemas/secretscanninglocationissuebody.py +13 -0
  236. ccai/restclient/github/public/schemas/secretscanninglocationissuecomment.py +13 -0
  237. ccai/restclient/github/public/schemas/secretscanninglocationissuetitle.py +13 -0
  238. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestbody.py +13 -0
  239. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestcomment.py +13 -0
  240. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreview.py +13 -0
  241. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreviewcomment.py +13 -0
  242. ccai/restclient/github/public/schemas/secretscanninglocationpullrequesttitle.py +13 -0
  243. ccai/restclient/github/public/schemas/secretscanninglocationwikicommit.py +21 -0
  244. ccai/restclient/github/public/schemas/secretscanningpatternoverride.py +23 -0
  245. ccai/restclient/github/public/schemas/secretscanningscan.py +18 -0
  246. ccai/restclient/github/public/schemas/securityadvisories.py +106 -0
  247. ccai/restclient/github/public/schemas/securityadvisoryepss.py +14 -0
  248. ccai/restclient/github/public/schemas/securityandanalysis.py +18 -0
  249. ccai/restclient/github/public/schemas/shortblob.py +14 -0
  250. ccai/restclient/github/public/schemas/simplechecksuite.py +28 -0
  251. ccai/restclient/github/public/schemas/simpleclassroomorganization.py +20 -0
  252. ccai/restclient/github/public/schemas/simpleclassroomrepository.py +18 -0
  253. ccai/restclient/github/public/schemas/simpleclassroomuser.py +16 -0
  254. ccai/restclient/github/public/schemas/simplecommit.py +20 -0
  255. ccai/restclient/github/public/schemas/simplecommitstatus.py +22 -0
  256. ccai/restclient/github/public/schemas/simpleinstallation.py +16 -0
  257. ccai/restclient/github/public/schemas/simplerepository.py +60 -0
  258. ccai/restclient/github/public/schemas/statechangeissueevent.py +24 -0
  259. ccai/restclient/github/public/schemas/subissuessummary.py +12 -0
  260. ccai/restclient/github/public/schemas/teamorganization.py +63 -0
  261. ccai/restclient/github/public/schemas/teams.py +202 -0
  262. ccai/restclient/github/public/schemas/timelineassignedissueevent.py +24 -0
  263. ccai/restclient/github/public/schemas/timelinecommentevent.py +30 -0
  264. ccai/restclient/github/public/schemas/timelinecommitcommentedevent.py +18 -0
  265. ccai/restclient/github/public/schemas/timelinecommittedevent.py +25 -0
  266. ccai/restclient/github/public/schemas/timelinecrossreferencedevent.py +19 -0
  267. ccai/restclient/github/public/schemas/timelinelinecommentedevent.py +17 -0
  268. ccai/restclient/github/public/schemas/timelinereviewedevent.py +29 -0
  269. ccai/restclient/github/public/schemas/timelineunassignedissueevent.py +24 -0
  270. ccai/restclient/github/public/schemas/traffic.py +12 -0
  271. ccai/restclient/github/public/schemas/unassignedissueevent.py +25 -0
  272. ccai/restclient/github/public/schemas/unlabeledissueevent.py +24 -0
  273. ccai/restclient/github/public/schemas/users.py +183 -0
  274. ccai/restclient/github/public/schemas/validationerror.py +17 -0
  275. ccai/restclient/github/public/schemas/validationerrorsimple.py +17 -0
  276. ccai/restclient/github/public/schemas/verification.py +16 -0
  277. ccai/restclient/github/public/schemas/vulnerability.py +18 -0
  278. ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationdisabled.py +15 -0
  279. ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationenabled.py +15 -0
  280. ccai/restclient/github/public/schemas/webhookbranchprotectionrulecreated.py +16 -0
  281. ccai/restclient/github/public/schemas/webhookbranchprotectionruledeleted.py +16 -0
  282. ccai/restclient/github/public/schemas/webhookbranchprotectionruleedited.py +19 -0
  283. ccai/restclient/github/public/schemas/webhookcheckruncompleted.py +15 -0
  284. ccai/restclient/github/public/schemas/webhookcheckruncompletedformencoded.py +13 -0
  285. ccai/restclient/github/public/schemas/webhookcheckruncreated.py +15 -0
  286. ccai/restclient/github/public/schemas/webhookcheckruncreatedformencoded.py +13 -0
  287. ccai/restclient/github/public/schemas/webhookcheckrunrequestedaction.py +18 -0
  288. ccai/restclient/github/public/schemas/webhookcheckrunrequestedactionformencoded.py +13 -0
  289. ccai/restclient/github/public/schemas/webhookcheckrunrerequested.py +15 -0
  290. ccai/restclient/github/public/schemas/webhookcheckrunrerequestedformencoded.py +13 -0
  291. ccai/restclient/github/public/schemas/webhookchecksuitecompleted.py +18 -0
  292. ccai/restclient/github/public/schemas/webhookchecksuiterequested.py +18 -0
  293. ccai/restclient/github/public/schemas/webhookchecksuitererequested.py +18 -0
  294. ccai/restclient/github/public/schemas/webhookcodescanningalertappearedinbranch.py +20 -0
  295. ccai/restclient/github/public/schemas/webhookcodescanningalertclosedbyuser.py +20 -0
  296. ccai/restclient/github/public/schemas/webhookcodescanningalertcreated.py +20 -0
  297. ccai/restclient/github/public/schemas/webhookcodescanningalertfixed.py +20 -0
  298. ccai/restclient/github/public/schemas/webhookcodescanningalertreopened.py +20 -0
  299. ccai/restclient/github/public/schemas/webhookcodescanningalertreopenedbyuser.py +20 -0
  300. ccai/restclient/github/public/schemas/webhookcommitcommentcreated.py +18 -0
  301. ccai/restclient/github/public/schemas/webhookcreate.py +21 -0
  302. ccai/restclient/github/public/schemas/webhookcustompropertycreated.py +15 -0
  303. ccai/restclient/github/public/schemas/webhookcustompropertydeleted.py +17 -0
  304. ccai/restclient/github/public/schemas/webhookcustompropertypromotedtoenterprise.py +15 -0
  305. ccai/restclient/github/public/schemas/webhookcustompropertyupdated.py +15 -0
  306. ccai/restclient/github/public/schemas/webhookcustompropertyvaluesupdated.py +19 -0
  307. ccai/restclient/github/public/schemas/webhookdelete.py +17 -0
  308. ccai/restclient/github/public/schemas/webhookdependabotalertautodismissed.py +16 -0
  309. ccai/restclient/github/public/schemas/webhookdependabotalertautoreopened.py +16 -0
  310. ccai/restclient/github/public/schemas/webhookdependabotalertcreated.py +16 -0
  311. ccai/restclient/github/public/schemas/webhookdependabotalertdismissed.py +16 -0
  312. ccai/restclient/github/public/schemas/webhookdependabotalertfixed.py +16 -0
  313. ccai/restclient/github/public/schemas/webhookdependabotalertreintroduced.py +16 -0
  314. ccai/restclient/github/public/schemas/webhookdependabotalertreopened.py +16 -0
  315. ccai/restclient/github/public/schemas/webhookdeploykeycreated.py +16 -0
  316. ccai/restclient/github/public/schemas/webhookdeploykeydeleted.py +16 -0
  317. ccai/restclient/github/public/schemas/webhookdeploymentcreated.py +20 -0
  318. ccai/restclient/github/public/schemas/webhookdeploymentprotectionrulerequested.py +21 -0
  319. ccai/restclient/github/public/schemas/webhookdeploymentreviewapproved.py +24 -0
  320. ccai/restclient/github/public/schemas/webhookdeploymentreviewrejected.py +24 -0
  321. ccai/restclient/github/public/schemas/webhookdeploymentreviewrequested.py +23 -0
  322. ccai/restclient/github/public/schemas/webhookdeploymentstatuscreated.py +22 -0
  323. ccai/restclient/github/public/schemas/webhookdiscussionanswered.py +17 -0
  324. ccai/restclient/github/public/schemas/webhookdiscussioncategorychanged.py +19 -0
  325. ccai/restclient/github/public/schemas/webhookdiscussionclosed.py +16 -0
  326. ccai/restclient/github/public/schemas/webhookdiscussioncommentcreated.py +17 -0
  327. ccai/restclient/github/public/schemas/webhookdiscussioncommentdeleted.py +17 -0
  328. ccai/restclient/github/public/schemas/webhookdiscussioncommentedited.py +20 -0
  329. ccai/restclient/github/public/schemas/webhookdiscussioncreated.py +16 -0
  330. ccai/restclient/github/public/schemas/webhookdiscussiondeleted.py +16 -0
  331. ccai/restclient/github/public/schemas/webhookdiscussionedited.py +19 -0
  332. ccai/restclient/github/public/schemas/webhookdiscussionlabeled.py +17 -0
  333. ccai/restclient/github/public/schemas/webhookdiscussionlocked.py +16 -0
  334. ccai/restclient/github/public/schemas/webhookdiscussionpinned.py +16 -0
  335. ccai/restclient/github/public/schemas/webhookdiscussionreopened.py +16 -0
  336. ccai/restclient/github/public/schemas/webhookdiscussiontransferred.py +19 -0
  337. ccai/restclient/github/public/schemas/webhookdiscussionunanswered.py +15 -0
  338. ccai/restclient/github/public/schemas/webhookdiscussionunlabeled.py +17 -0
  339. ccai/restclient/github/public/schemas/webhookdiscussionunlocked.py +16 -0
  340. ccai/restclient/github/public/schemas/webhookdiscussionunpinned.py +16 -0
  341. ccai/restclient/github/public/schemas/webhookfork.py +18 -0
  342. ccai/restclient/github/public/schemas/webhookgithubappauthorizationrevoked.py +11 -0
  343. ccai/restclient/github/public/schemas/webhookgollum.py +17 -0
  344. ccai/restclient/github/public/schemas/webhookinstallationcreated.py +19 -0
  345. ccai/restclient/github/public/schemas/webhookinstallationdeleted.py +19 -0
  346. ccai/restclient/github/public/schemas/webhookinstallationnewpermissionsaccepted.py +19 -0
  347. ccai/restclient/github/public/schemas/webhookinstallationrepositoriesadded.py +21 -0
  348. ccai/restclient/github/public/schemas/webhookinstallationrepositoriesremoved.py +21 -0
  349. ccai/restclient/github/public/schemas/webhookinstallationsuspend.py +19 -0
  350. ccai/restclient/github/public/schemas/webhookinstallationtargetrenamed.py +20 -0
  351. ccai/restclient/github/public/schemas/webhookinstallationunsuspend.py +19 -0
  352. ccai/restclient/github/public/schemas/webhookissuecommentcreated.py +19 -0
  353. ccai/restclient/github/public/schemas/webhookissuecommentdeleted.py +17 -0
  354. ccai/restclient/github/public/schemas/webhookissuecommentedited.py +18 -0
  355. ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyadded.py +19 -0
  356. ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyremoved.py +19 -0
  357. ccai/restclient/github/public/schemas/webhookissuedependenciesblockingadded.py +19 -0
  358. ccai/restclient/github/public/schemas/webhookissuedependenciesblockingremoved.py +19 -0
  359. ccai/restclient/github/public/schemas/webhookissuesassigned.py +17 -0
  360. ccai/restclient/github/public/schemas/webhookissuesclosed.py +16 -0
  361. ccai/restclient/github/public/schemas/webhookissuesdeleted.py +18 -0
  362. ccai/restclient/github/public/schemas/webhookissuesdemilestoned.py +19 -0
  363. ccai/restclient/github/public/schemas/webhookissuesedited.py +20 -0
  364. ccai/restclient/github/public/schemas/webhookissueslabeled.py +19 -0
  365. ccai/restclient/github/public/schemas/webhookissueslocked.py +18 -0
  366. ccai/restclient/github/public/schemas/webhookissuesmilestoned.py +19 -0
  367. ccai/restclient/github/public/schemas/webhookissuesopened.py +19 -0
  368. ccai/restclient/github/public/schemas/webhookissuespinned.py +16 -0
  369. ccai/restclient/github/public/schemas/webhookissuesreopened.py +18 -0
  370. ccai/restclient/github/public/schemas/webhookissuestransferred.py +19 -0
  371. ccai/restclient/github/public/schemas/webhookissuestyped.py +17 -0
  372. ccai/restclient/github/public/schemas/webhookissuesunassigned.py +17 -0
  373. ccai/restclient/github/public/schemas/webhookissuesunlabeled.py +17 -0
  374. ccai/restclient/github/public/schemas/webhookissuesunlocked.py +18 -0
  375. ccai/restclient/github/public/schemas/webhookissuesunpinned.py +16 -0
  376. ccai/restclient/github/public/schemas/webhookissuesuntyped.py +17 -0
  377. ccai/restclient/github/public/schemas/webhooklabelcreated.py +16 -0
  378. ccai/restclient/github/public/schemas/webhooklabeldeleted.py +16 -0
  379. ccai/restclient/github/public/schemas/webhooklabeledited.py +19 -0
  380. ccai/restclient/github/public/schemas/webhookmarketplacepurchasecancelled.py +18 -0
  381. ccai/restclient/github/public/schemas/webhookmarketplacepurchasechanged.py +20 -0
  382. ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchange.py +20 -0
  383. ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchangecancelled.py +20 -0
  384. ccai/restclient/github/public/schemas/webhookmarketplacepurchasepurchased.py +18 -0
  385. ccai/restclient/github/public/schemas/webhookmemberadded.py +19 -0
  386. ccai/restclient/github/public/schemas/webhookmemberedited.py +19 -0
  387. ccai/restclient/github/public/schemas/webhookmemberremoved.py +16 -0
  388. ccai/restclient/github/public/schemas/webhookmembershipadded.py +20 -0
  389. ccai/restclient/github/public/schemas/webhookmembershipremoved.py +20 -0
  390. ccai/restclient/github/public/schemas/webhookmergegroupchecksrequested.py +15 -0
  391. ccai/restclient/github/public/schemas/webhookmergegroupdestroyed.py +16 -0
  392. ccai/restclient/github/public/schemas/webhookmetadeleted.py +19 -0
  393. ccai/restclient/github/public/schemas/webhookmilestoneclosed.py +16 -0
  394. ccai/restclient/github/public/schemas/webhookmilestonecreated.py +16 -0
  395. ccai/restclient/github/public/schemas/webhookmilestonedeleted.py +16 -0
  396. ccai/restclient/github/public/schemas/webhookmilestoneedited.py +19 -0
  397. ccai/restclient/github/public/schemas/webhookmilestoneopened.py +16 -0
  398. ccai/restclient/github/public/schemas/webhookorganizationdeleted.py +16 -0
  399. ccai/restclient/github/public/schemas/webhookorganizationmemberadded.py +16 -0
  400. ccai/restclient/github/public/schemas/webhookorganizationmemberinvited.py +19 -0
  401. ccai/restclient/github/public/schemas/webhookorganizationmemberremoved.py +16 -0
  402. ccai/restclient/github/public/schemas/webhookorganizationrenamed.py +19 -0
  403. ccai/restclient/github/public/schemas/webhookorgblockblocked.py +16 -0
  404. ccai/restclient/github/public/schemas/webhookorgblockunblocked.py +16 -0
  405. ccai/restclient/github/public/schemas/webhookpackagepublished.py +18 -0
  406. ccai/restclient/github/public/schemas/webhookpackageupdated.py +18 -0
  407. ccai/restclient/github/public/schemas/webhookpagebuild.py +18 -0
  408. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestapproved.py +15 -0
  409. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcancelled.py +15 -0
  410. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcreated.py +15 -0
  411. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestdenied.py +15 -0
  412. ccai/restclient/github/public/schemas/webhookping.py +17 -0
  413. ccai/restclient/github/public/schemas/webhookpingformencoded.py +13 -0
  414. ccai/restclient/github/public/schemas/webhookprojectcardconverted.py +19 -0
  415. ccai/restclient/github/public/schemas/webhookprojectcardcreated.py +16 -0
  416. ccai/restclient/github/public/schemas/webhookprojectcarddeleted.py +18 -0
  417. ccai/restclient/github/public/schemas/webhookprojectcardedited.py +19 -0
  418. ccai/restclient/github/public/schemas/webhookprojectcardmoved.py +19 -0
  419. ccai/restclient/github/public/schemas/webhookprojectclosed.py +16 -0
  420. ccai/restclient/github/public/schemas/webhookprojectcolumncreated.py +16 -0
  421. ccai/restclient/github/public/schemas/webhookprojectcolumndeleted.py +16 -0
  422. ccai/restclient/github/public/schemas/webhookprojectcolumnedited.py +19 -0
  423. ccai/restclient/github/public/schemas/webhookprojectcolumnmoved.py +16 -0
  424. ccai/restclient/github/public/schemas/webhookprojectcreated.py +16 -0
  425. ccai/restclient/github/public/schemas/webhookprojectdeleted.py +16 -0
  426. ccai/restclient/github/public/schemas/webhookprojectedited.py +19 -0
  427. ccai/restclient/github/public/schemas/webhookprojectreopened.py +16 -0
  428. ccai/restclient/github/public/schemas/webhookprojectsv2itemarchived.py +15 -0
  429. ccai/restclient/github/public/schemas/webhookprojectsv2itemconverted.py +17 -0
  430. ccai/restclient/github/public/schemas/webhookprojectsv2itemcreated.py +14 -0
  431. ccai/restclient/github/public/schemas/webhookprojectsv2itemdeleted.py +14 -0
  432. ccai/restclient/github/public/schemas/webhookprojectsv2itemedited.py +17 -0
  433. ccai/restclient/github/public/schemas/webhookprojectsv2itemreordered.py +17 -0
  434. ccai/restclient/github/public/schemas/webhookprojectsv2itemrestored.py +15 -0
  435. ccai/restclient/github/public/schemas/webhookprojectsv2projectclosed.py +14 -0
  436. ccai/restclient/github/public/schemas/webhookprojectsv2projectcreated.py +17 -0
  437. ccai/restclient/github/public/schemas/webhookprojectsv2projectdeleted.py +14 -0
  438. ccai/restclient/github/public/schemas/webhookprojectsv2projectedited.py +17 -0
  439. ccai/restclient/github/public/schemas/webhookprojectsv2projectreopened.py +14 -0
  440. ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatecreated.py +14 -0
  441. ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatedeleted.py +14 -0
  442. ccai/restclient/github/public/schemas/webhookprojectsv2statusupdateedited.py +17 -0
  443. ccai/restclient/github/public/schemas/webhookpublic.py +14 -0
  444. ccai/restclient/github/public/schemas/webhookpullrequestassigned.py +20 -0
  445. ccai/restclient/github/public/schemas/webhookpullrequestautomergedisabled.py +20 -0
  446. ccai/restclient/github/public/schemas/webhookpullrequestautomergeenabled.py +20 -0
  447. ccai/restclient/github/public/schemas/webhookpullrequestclosed.py +17 -0
  448. ccai/restclient/github/public/schemas/webhookpullrequestconvertedtodraft.py +17 -0
  449. ccai/restclient/github/public/schemas/webhookpullrequestdemilestoned.py +17 -0
  450. ccai/restclient/github/public/schemas/webhookpullrequestdequeued.py +20 -0
  451. ccai/restclient/github/public/schemas/webhookpullrequestedited.py +20 -0
  452. ccai/restclient/github/public/schemas/webhookpullrequestenqueued.py +19 -0
  453. ccai/restclient/github/public/schemas/webhookpullrequestlabeled.py +20 -0
  454. ccai/restclient/github/public/schemas/webhookpullrequestlocked.py +19 -0
  455. ccai/restclient/github/public/schemas/webhookpullrequestmilestoned.py +17 -0
  456. ccai/restclient/github/public/schemas/webhookpullrequestopened.py +17 -0
  457. ccai/restclient/github/public/schemas/webhookpullrequestreadyforreview.py +17 -0
  458. ccai/restclient/github/public/schemas/webhookpullrequestreopened.py +17 -0
  459. ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentcreated.py +19 -0
  460. ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentdeleted.py +19 -0
  461. ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentedited.py +20 -0
  462. ccai/restclient/github/public/schemas/webhookpullrequestreviewdismissed.py +19 -0
  463. ccai/restclient/github/public/schemas/webhookpullrequestreviewedited.py +20 -0
  464. ccai/restclient/github/public/schemas/webhookpullrequestreviewsubmitted.py +19 -0
  465. ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadresolved.py +20 -0
  466. ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadunresolved.py +20 -0
  467. ccai/restclient/github/public/schemas/webhookpullrequestsynchronize.py +21 -0
  468. ccai/restclient/github/public/schemas/webhookpullrequestunassigned.py +20 -0
  469. ccai/restclient/github/public/schemas/webhookpullrequestunlabeled.py +20 -0
  470. ccai/restclient/github/public/schemas/webhookpullrequestunlocked.py +19 -0
  471. ccai/restclient/github/public/schemas/webhookpush.py +27 -0
  472. ccai/restclient/github/public/schemas/webhookregistrypackagepublished.py +18 -0
  473. ccai/restclient/github/public/schemas/webhookregistrypackageupdated.py +18 -0
  474. ccai/restclient/github/public/schemas/webhookreleasecreated.py +16 -0
  475. ccai/restclient/github/public/schemas/webhookreleasedeleted.py +16 -0
  476. ccai/restclient/github/public/schemas/webhookreleaseedited.py +19 -0
  477. ccai/restclient/github/public/schemas/webhookreleaseprereleased.py +18 -0
  478. ccai/restclient/github/public/schemas/webhookreleasepublished.py +16 -0
  479. ccai/restclient/github/public/schemas/webhookreleasereleased.py +16 -0
  480. ccai/restclient/github/public/schemas/webhookreleaseunpublished.py +16 -0
  481. ccai/restclient/github/public/schemas/webhookrepositoryadvisorypublished.py +16 -0
  482. ccai/restclient/github/public/schemas/webhookrepositoryadvisoryreported.py +16 -0
  483. ccai/restclient/github/public/schemas/webhookrepositoryarchived.py +15 -0
  484. ccai/restclient/github/public/schemas/webhookrepositorycreated.py +15 -0
  485. ccai/restclient/github/public/schemas/webhookrepositorydeleted.py +15 -0
  486. ccai/restclient/github/public/schemas/webhookrepositorydispatchsample.py +19 -0
  487. ccai/restclient/github/public/schemas/webhookrepositoryedited.py +18 -0
  488. ccai/restclient/github/public/schemas/webhookrepositoryimport.py +15 -0
  489. ccai/restclient/github/public/schemas/webhookrepositoryprivatized.py +15 -0
  490. ccai/restclient/github/public/schemas/webhookrepositorypublicized.py +15 -0
  491. ccai/restclient/github/public/schemas/webhookrepositoryrenamed.py +18 -0
  492. ccai/restclient/github/public/schemas/webhookrepositoryrulesetcreated.py +16 -0
  493. ccai/restclient/github/public/schemas/webhookrepositoryrulesetdeleted.py +16 -0
  494. ccai/restclient/github/public/schemas/webhookrepositoryrulesetedited.py +19 -0
  495. ccai/restclient/github/public/schemas/webhookrepositorytransferred.py +18 -0
  496. ccai/restclient/github/public/schemas/webhookrepositoryunarchived.py +15 -0
  497. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertcreate.py +16 -0
  498. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertdismiss.py +18 -0
  499. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertreopen.py +16 -0
  500. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertresolve.py +18 -0
  501. ccai/restclient/github/public/schemas/webhookrubygemsmetadata.py +21 -0
  502. ccai/restclient/github/public/schemas/webhooksalert.py +31 -0
  503. ccai/restclient/github/public/schemas/webhooksanswer.py +24 -0
  504. ccai/restclient/github/public/schemas/webhooksapprover.py +28 -0
  505. ccai/restclient/github/public/schemas/webhookschanges.py +15 -0
  506. ccai/restclient/github/public/schemas/webhookschanges8.py +12 -0
  507. ccai/restclient/github/public/schemas/webhookscomment.py +24 -0
  508. ccai/restclient/github/public/schemas/webhooksdeploykey.py +24 -0
  509. ccai/restclient/github/public/schemas/webhooksecretscanningalertcreated.py +16 -0
  510. ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreated.py +16 -0
  511. ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreatedformencoded.py +10 -0
  512. ccai/restclient/github/public/schemas/webhooksecretscanningalertpubliclyleaked.py +16 -0
  513. ccai/restclient/github/public/schemas/webhooksecretscanningalertreopened.py +16 -0
  514. ccai/restclient/github/public/schemas/webhooksecretscanningalertresolved.py +16 -0
  515. ccai/restclient/github/public/schemas/webhooksecretscanningalertvalidated.py +16 -0
  516. ccai/restclient/github/public/schemas/webhooksecretscanningscancompleted.py +24 -0
  517. ccai/restclient/github/public/schemas/webhooksecurityadvisorypublished.py +16 -0
  518. ccai/restclient/github/public/schemas/webhooksecurityadvisoryupdated.py +16 -0
  519. ccai/restclient/github/public/schemas/webhooksecurityadvisorywithdrawn.py +18 -0
  520. ccai/restclient/github/public/schemas/webhooksecurityandanalysis.py +17 -0
  521. ccai/restclient/github/public/schemas/webhooksissue.py +48 -0
  522. ccai/restclient/github/public/schemas/webhooksissue2.py +48 -0
  523. ccai/restclient/github/public/schemas/webhooksissuecomment.py +26 -0
  524. ccai/restclient/github/public/schemas/webhookslabel.py +18 -0
  525. ccai/restclient/github/public/schemas/webhooksmarketplacepurchase.py +18 -0
  526. ccai/restclient/github/public/schemas/webhooksmembership.py +21 -0
  527. ccai/restclient/github/public/schemas/webhooksmilestone.py +30 -0
  528. ccai/restclient/github/public/schemas/webhooksmilestone3.py +30 -0
  529. ccai/restclient/github/public/schemas/webhooksponsorshipcancelled.py +16 -0
  530. ccai/restclient/github/public/schemas/webhooksponsorshipcreated.py +16 -0
  531. ccai/restclient/github/public/schemas/webhooksponsorshipedited.py +19 -0
  532. ccai/restclient/github/public/schemas/webhooksponsorshippendingcancellation.py +17 -0
  533. ccai/restclient/github/public/schemas/webhooksponsorshippendingtierchange.py +18 -0
  534. ccai/restclient/github/public/schemas/webhooksponsorshiptierchanged.py +17 -0
  535. ccai/restclient/github/public/schemas/webhookspreviousmarketplacepurchase.py +18 -0
  536. ccai/restclient/github/public/schemas/webhooksproject.py +24 -0
  537. ccai/restclient/github/public/schemas/webhooksprojectcard.py +24 -0
  538. ccai/restclient/github/public/schemas/webhooksprojectchanges.py +12 -0
  539. ccai/restclient/github/public/schemas/webhooksprojectcolumn.py +20 -0
  540. ccai/restclient/github/public/schemas/webhookspullrequest5.py +59 -0
  541. ccai/restclient/github/public/schemas/webhooksrelease.py +36 -0
  542. ccai/restclient/github/public/schemas/webhooksrelease1.py +36 -0
  543. ccai/restclient/github/public/schemas/webhooksreview.py +26 -0
  544. ccai/restclient/github/public/schemas/webhooksreviewcomment.py +41 -0
  545. ccai/restclient/github/public/schemas/webhooksrule.py +42 -0
  546. ccai/restclient/github/public/schemas/webhookssecurityadvisory.py +27 -0
  547. ccai/restclient/github/public/schemas/webhookssponsorship.py +18 -0
  548. ccai/restclient/github/public/schemas/webhookstarcreated.py +18 -0
  549. ccai/restclient/github/public/schemas/webhookstardeleted.py +18 -0
  550. ccai/restclient/github/public/schemas/webhookstatus.py +28 -0
  551. ccai/restclient/github/public/schemas/webhooksteam.py +28 -0
  552. ccai/restclient/github/public/schemas/webhooksteam1.py +28 -0
  553. ccai/restclient/github/public/schemas/webhooksubissuesparentissueadded.py +19 -0
  554. ccai/restclient/github/public/schemas/webhooksubissuesparentissueremoved.py +19 -0
  555. ccai/restclient/github/public/schemas/webhooksubissuessubissueadded.py +19 -0
  556. ccai/restclient/github/public/schemas/webhooksubissuessubissueremoved.py +19 -0
  557. ccai/restclient/github/public/schemas/webhooksuser.py +33 -0
  558. ccai/restclient/github/public/schemas/webhooksusermannequin.py +33 -0
  559. ccai/restclient/github/public/schemas/webhooksworkflow.py +19 -0
  560. ccai/restclient/github/public/schemas/webhooksworkflowjobrun.py +19 -0
  561. ccai/restclient/github/public/schemas/webhookteamadd.py +15 -0
  562. ccai/restclient/github/public/schemas/webhookteamaddedtorepository.py +18 -0
  563. ccai/restclient/github/public/schemas/webhookteamcreated.py +18 -0
  564. ccai/restclient/github/public/schemas/webhookteamdeleted.py +18 -0
  565. ccai/restclient/github/public/schemas/webhookteamedited.py +19 -0
  566. ccai/restclient/github/public/schemas/webhookteamremovedfromrepository.py +18 -0
  567. ccai/restclient/github/public/schemas/webhookwatchstarted.py +15 -0
  568. ccai/restclient/github/public/schemas/webhookworkflowdispatch.py +19 -0
  569. ccai/restclient/github/public/schemas/webhookworkflowjobcompleted.py +17 -0
  570. ccai/restclient/github/public/schemas/webhookworkflowjobinprogress.py +17 -0
  571. ccai/restclient/github/public/schemas/webhookworkflowjobqueued.py +19 -0
  572. ccai/restclient/github/public/schemas/webhookworkflowjobwaiting.py +19 -0
  573. ccai/restclient/github/public/schemas/webhookworkflowruncompleted.py +19 -0
  574. ccai/restclient/github/public/schemas/webhookworkflowruninprogress.py +19 -0
  575. ccai/restclient/github/public/schemas/webhookworkflowrunrequested.py +19 -0
  576. codecraftai_restclient_github_public-1.2.0.dist-info/METADATA +87 -0
  577. codecraftai_restclient_github_public-1.2.0.dist-info/RECORD +579 -0
  578. codecraftai_restclient_github_public-1.2.0.dist-info/WHEEL +4 -0
  579. codecraftai_restclient_github_public-1.2.0.dist-info/licenses/LICENSE.md +204 -0
@@ -0,0 +1,1469 @@
1
+ # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
+
3
+ from typing import Any, Dict, List, Optional, Union
4
+
5
+ from ccai.restclient.base.aspectsrest import AspectsRest
6
+ from ccai.restclient.base.pagedlist import PagedList
7
+ from ccai.restclient.base.restapigroup import RestApiGroup
8
+ from ccai.restclient.github.public.schemas.commit import Commit
9
+ from ccai.restclient.github.public.schemas.pullrequestsimple import PullRequestSimple
10
+ from ccai.restclient.github.public.schemas.pulls import DiffEntry
11
+ from ccai.restclient.github.public.schemas.pulls import PullRequest
12
+ from ccai.restclient.github.public.schemas.pulls import PullRequestMergeResult
13
+ from ccai.restclient.github.public.schemas.pulls import PullRequestReview
14
+ from ccai.restclient.github.public.schemas.pulls import PullRequestReviewComment
15
+ from ccai.restclient.github.public.schemas.pulls import PullRequestReviewRequest
16
+ from ccai.restclient.github.public.schemas.pulls import ReviewComment
17
+
18
+
19
+ class PullsApiGroup(RestApiGroup):
20
+ """
21
+ Interact with GitHub Pull Requests.
22
+ """
23
+
24
+ def check_if_merged(self, owner: str, repo: str, pull_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
25
+ """
26
+ Check if a pull request has been merged
27
+
28
+ Checks if a pull request has been merged into the base branch. The HTTP status of the response indicates whether or not the pull request has been merged; the response body is empty.
29
+ """
30
+ client = self.client
31
+ if aspects is None:
32
+ aspects = client.aspects
33
+
34
+ header_params = client.headers
35
+ if headers is not None:
36
+ header_params = headers
37
+
38
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/merge"
39
+ path_params = {
40
+ 'owner': owner,
41
+ 'repo': repo,
42
+ 'pull_number': pull_number,
43
+ }
44
+ call_leaf = leaf_template.format(**path_params)
45
+
46
+ query_params = None
47
+
48
+
49
+ if exp_status is None:
50
+ exp_status = [204]
51
+
52
+ resp = client.perform_call(
53
+ leaf=call_leaf,
54
+ method="GET",
55
+ params=query_params if query_params else None,
56
+ body=None,
57
+ exp_status=exp_status,
58
+ headers=header_params if header_params else None,
59
+ context_msg=None,
60
+ aspects=aspects,
61
+ )
62
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
63
+ rtnval = None
64
+ else:
65
+ rtnval = resp.json()
66
+ return rtnval
67
+
68
+ def create(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
69
+ """
70
+ Create a pull request
71
+
72
+ Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
73
+
74
+ To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
75
+
76
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
77
+
78
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
79
+
80
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
81
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
82
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
83
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
84
+ """
85
+ client = self.client
86
+ if aspects is None:
87
+ aspects = client.aspects
88
+
89
+ header_params = client.headers
90
+ if headers is not None:
91
+ header_params = headers
92
+
93
+ leaf_template = "/repos/{owner}/{repo}/pulls"
94
+ path_params = {
95
+ 'owner': owner,
96
+ 'repo': repo,
97
+ }
98
+ call_leaf = leaf_template.format(**path_params)
99
+
100
+ query_params = None
101
+
102
+
103
+ if exp_status is None:
104
+ exp_status = [201]
105
+
106
+ resp = client.perform_call(
107
+ leaf=call_leaf,
108
+ method="POST",
109
+ params=query_params if query_params else None,
110
+ body=body,
111
+ exp_status=exp_status,
112
+ headers=header_params if header_params else None,
113
+ context_msg=None,
114
+ aspects=aspects,
115
+ )
116
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
117
+ rtnval = None
118
+ else:
119
+ rtnval = resp.json()
120
+ return rtnval
121
+
122
+ def create_reply_for_review_comment(self, owner: str, repo: str, pull_number: int, comment_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
123
+ """
124
+ Create a reply for a review comment
125
+
126
+ Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported.
127
+
128
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
129
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
130
+
131
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
132
+
133
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
134
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
135
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
136
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
137
+ """
138
+ client = self.client
139
+ if aspects is None:
140
+ aspects = client.aspects
141
+
142
+ header_params = client.headers
143
+ if headers is not None:
144
+ header_params = headers
145
+
146
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
147
+ path_params = {
148
+ 'owner': owner,
149
+ 'repo': repo,
150
+ 'pull_number': pull_number,
151
+ 'comment_id': comment_id,
152
+ }
153
+ call_leaf = leaf_template.format(**path_params)
154
+
155
+ query_params = None
156
+
157
+
158
+ if exp_status is None:
159
+ exp_status = [201]
160
+
161
+ resp = client.perform_call(
162
+ leaf=call_leaf,
163
+ method="POST",
164
+ params=query_params if query_params else None,
165
+ body=body,
166
+ exp_status=exp_status,
167
+ headers=header_params if header_params else None,
168
+ context_msg=None,
169
+ aspects=aspects,
170
+ )
171
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
172
+ rtnval = None
173
+ else:
174
+ rtnval = resp.json()
175
+ return rtnval
176
+
177
+ def create_review(self, owner: str, repo: str, pull_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReview:
178
+ """
179
+ Create a review for a pull request
180
+
181
+ Creates a review on a specified pull request.
182
+
183
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
184
+
185
+ Pull request reviews created in the `PENDING` state are not submitted and therefore do not include the `submitted_at` property in the response. To create a pending review for a pull request, leave the `event` parameter blank. For more information about submitting a `PENDING` review, see "[Submit a review for a pull request](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request)."
186
+
187
+ > [!NOTE]
188
+ > To comment on a specific line in a file, you need to first determine the position of that line in the diff. To see a pull request diff, add the `application/vnd.github.v3.diff` media type to the `Accept` header of a call to the [Get a pull request](https://docs.github.com/rest/pulls/pulls#get-a-pull-request) endpoint.
189
+
190
+ The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
191
+
192
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
193
+
194
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
195
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
196
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
197
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
198
+ """
199
+ client = self.client
200
+ if aspects is None:
201
+ aspects = client.aspects
202
+
203
+ header_params = client.headers
204
+ if headers is not None:
205
+ header_params = headers
206
+
207
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews"
208
+ path_params = {
209
+ 'owner': owner,
210
+ 'repo': repo,
211
+ 'pull_number': pull_number,
212
+ }
213
+ call_leaf = leaf_template.format(**path_params)
214
+
215
+ query_params = None
216
+
217
+
218
+ if exp_status is None:
219
+ exp_status = [200]
220
+
221
+ resp = client.perform_call(
222
+ leaf=call_leaf,
223
+ method="POST",
224
+ params=query_params if query_params else None,
225
+ body=body,
226
+ exp_status=exp_status,
227
+ headers=header_params if header_params else None,
228
+ context_msg=None,
229
+ aspects=aspects,
230
+ )
231
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
232
+ rtnobj = None
233
+ else:
234
+ raw_data = resp.json()
235
+ rtnobj = PullRequestReview.from_dict(raw_data)
236
+ return rtnobj
237
+
238
+ def create_review_comment(self, owner: str, repo: str, pull_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
239
+ """
240
+ Create a review comment for a pull request
241
+
242
+ Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/issues/comments#create-an-issue-comment)."
243
+
244
+ If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.
245
+
246
+ The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.
247
+
248
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
249
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
250
+
251
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
252
+
253
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
254
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
255
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
256
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
257
+ """
258
+ client = self.client
259
+ if aspects is None:
260
+ aspects = client.aspects
261
+
262
+ header_params = client.headers
263
+ if headers is not None:
264
+ header_params = headers
265
+
266
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/comments"
267
+ path_params = {
268
+ 'owner': owner,
269
+ 'repo': repo,
270
+ 'pull_number': pull_number,
271
+ }
272
+ call_leaf = leaf_template.format(**path_params)
273
+
274
+ query_params = None
275
+
276
+
277
+ if exp_status is None:
278
+ exp_status = [201]
279
+
280
+ resp = client.perform_call(
281
+ leaf=call_leaf,
282
+ method="POST",
283
+ params=query_params if query_params else None,
284
+ body=body,
285
+ exp_status=exp_status,
286
+ headers=header_params if header_params else None,
287
+ context_msg=None,
288
+ aspects=aspects,
289
+ )
290
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
291
+ rtnval = None
292
+ else:
293
+ rtnval = resp.json()
294
+ return rtnval
295
+
296
+ def delete_pending_review(self, owner: str, repo: str, pull_number: int, review_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReview:
297
+ """
298
+ Delete a pending review for a pull request
299
+
300
+ Deletes a pull request review that has not been submitted. Submitted reviews cannot be deleted.
301
+
302
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
303
+
304
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
305
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
306
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
307
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
308
+ """
309
+ client = self.client
310
+ if aspects is None:
311
+ aspects = client.aspects
312
+
313
+ header_params = client.headers
314
+ if headers is not None:
315
+ header_params = headers
316
+
317
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
318
+ path_params = {
319
+ 'owner': owner,
320
+ 'repo': repo,
321
+ 'pull_number': pull_number,
322
+ 'review_id': review_id,
323
+ }
324
+ call_leaf = leaf_template.format(**path_params)
325
+
326
+ query_params = None
327
+
328
+
329
+ if exp_status is None:
330
+ exp_status = [200]
331
+
332
+ resp = client.perform_call(
333
+ leaf=call_leaf,
334
+ method="DELETE",
335
+ params=query_params if query_params else None,
336
+ body=None,
337
+ exp_status=exp_status,
338
+ headers=header_params if header_params else None,
339
+ context_msg=None,
340
+ aspects=aspects,
341
+ )
342
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
343
+ rtnobj = None
344
+ else:
345
+ raw_data = resp.json()
346
+ rtnobj = PullRequestReview.from_dict(raw_data)
347
+ return rtnobj
348
+
349
+ def delete_review_comment(self, owner: str, repo: str, comment_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
350
+ """
351
+ Delete a review comment for a pull request
352
+
353
+ Deletes a review comment.
354
+ """
355
+ client = self.client
356
+ if aspects is None:
357
+ aspects = client.aspects
358
+
359
+ header_params = client.headers
360
+ if headers is not None:
361
+ header_params = headers
362
+
363
+ leaf_template = "/repos/{owner}/{repo}/pulls/comments/{comment_id}"
364
+ path_params = {
365
+ 'owner': owner,
366
+ 'repo': repo,
367
+ 'comment_id': comment_id,
368
+ }
369
+ call_leaf = leaf_template.format(**path_params)
370
+
371
+ query_params = None
372
+
373
+
374
+ if exp_status is None:
375
+ exp_status = [204]
376
+
377
+ resp = client.perform_call(
378
+ leaf=call_leaf,
379
+ method="DELETE",
380
+ params=query_params if query_params else None,
381
+ body=None,
382
+ exp_status=exp_status,
383
+ headers=header_params if header_params else None,
384
+ context_msg=None,
385
+ aspects=aspects,
386
+ )
387
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
388
+ rtnval = None
389
+ else:
390
+ rtnval = resp.json()
391
+ return rtnval
392
+
393
+ def dismiss_review(self, owner: str, repo: str, pull_number: int, review_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReview:
394
+ """
395
+ Dismiss a review for a pull request
396
+
397
+ Dismisses a specified review on a pull request.
398
+
399
+ > [!NOTE]
400
+ > To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/branches/branch-protection), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
401
+
402
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
403
+
404
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
405
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
406
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
407
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
408
+ """
409
+ client = self.client
410
+ if aspects is None:
411
+ aspects = client.aspects
412
+
413
+ header_params = client.headers
414
+ if headers is not None:
415
+ header_params = headers
416
+
417
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
418
+ path_params = {
419
+ 'owner': owner,
420
+ 'repo': repo,
421
+ 'pull_number': pull_number,
422
+ 'review_id': review_id,
423
+ }
424
+ call_leaf = leaf_template.format(**path_params)
425
+
426
+ query_params = None
427
+
428
+
429
+ if exp_status is None:
430
+ exp_status = [200]
431
+
432
+ resp = client.perform_call(
433
+ leaf=call_leaf,
434
+ method="PUT",
435
+ params=query_params if query_params else None,
436
+ body=body,
437
+ exp_status=exp_status,
438
+ headers=header_params if header_params else None,
439
+ context_msg=None,
440
+ aspects=aspects,
441
+ )
442
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
443
+ rtnobj = None
444
+ else:
445
+ raw_data = resp.json()
446
+ rtnobj = PullRequestReview.from_dict(raw_data)
447
+ return rtnobj
448
+
449
+ def get(self, owner: str, repo: str, pull_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequest:
450
+ """
451
+ Get a pull request
452
+
453
+ Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
454
+
455
+ Lists details of a pull request by providing its number.
456
+
457
+ When you get, [create](https://docs.github.com/rest/pulls/pulls/#create-a-pull-request), or [edit](https://docs.github.com/rest/pulls/pulls#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)".
458
+
459
+ The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.
460
+
461
+ The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:
462
+
463
+ * If merged as a [merge commit](https://docs.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.
464
+ * If merged via a [squash](https://docs.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.
465
+ * If [rebased](https://docs.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.
466
+
467
+ Pass the appropriate [media type](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types) to fetch diff and patch formats.
468
+
469
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
470
+
471
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
472
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
473
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
474
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
475
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
476
+ """
477
+ client = self.client
478
+ if aspects is None:
479
+ aspects = client.aspects
480
+
481
+ header_params = client.headers
482
+ if headers is not None:
483
+ header_params = headers
484
+
485
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}"
486
+ path_params = {
487
+ 'owner': owner,
488
+ 'repo': repo,
489
+ 'pull_number': pull_number,
490
+ }
491
+ call_leaf = leaf_template.format(**path_params)
492
+
493
+ query_params = None
494
+
495
+
496
+ if exp_status is None:
497
+ exp_status = [200]
498
+
499
+ resp = client.perform_call(
500
+ leaf=call_leaf,
501
+ method="GET",
502
+ params=query_params if query_params else None,
503
+ body=None,
504
+ exp_status=exp_status,
505
+ headers=header_params if header_params else None,
506
+ context_msg=None,
507
+ aspects=aspects,
508
+ )
509
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
510
+ rtnobj = None
511
+ else:
512
+ raw_data = resp.json()
513
+ rtnobj = PullRequest.from_dict(raw_data)
514
+ return rtnobj
515
+
516
+ def get_review(self, owner: str, repo: str, pull_number: int, review_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReview:
517
+ """
518
+ Get a review for a pull request
519
+
520
+ Retrieves a pull request review by its ID.
521
+
522
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
523
+
524
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
525
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
526
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
527
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
528
+ """
529
+ client = self.client
530
+ if aspects is None:
531
+ aspects = client.aspects
532
+
533
+ header_params = client.headers
534
+ if headers is not None:
535
+ header_params = headers
536
+
537
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
538
+ path_params = {
539
+ 'owner': owner,
540
+ 'repo': repo,
541
+ 'pull_number': pull_number,
542
+ 'review_id': review_id,
543
+ }
544
+ call_leaf = leaf_template.format(**path_params)
545
+
546
+ query_params = None
547
+
548
+
549
+ if exp_status is None:
550
+ exp_status = [200]
551
+
552
+ resp = client.perform_call(
553
+ leaf=call_leaf,
554
+ method="GET",
555
+ params=query_params if query_params else None,
556
+ body=None,
557
+ exp_status=exp_status,
558
+ headers=header_params if header_params else None,
559
+ context_msg=None,
560
+ aspects=aspects,
561
+ )
562
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
563
+ rtnobj = None
564
+ else:
565
+ raw_data = resp.json()
566
+ rtnobj = PullRequestReview.from_dict(raw_data)
567
+ return rtnobj
568
+
569
+ def get_review_comment(self, owner: str, repo: str, comment_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReviewComment:
570
+ """
571
+ Get a review comment for a pull request
572
+
573
+ Provides details for a specified review comment.
574
+
575
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
576
+
577
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
578
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
579
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
580
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
581
+ """
582
+ client = self.client
583
+ if aspects is None:
584
+ aspects = client.aspects
585
+
586
+ header_params = client.headers
587
+ if headers is not None:
588
+ header_params = headers
589
+
590
+ leaf_template = "/repos/{owner}/{repo}/pulls/comments/{comment_id}"
591
+ path_params = {
592
+ 'owner': owner,
593
+ 'repo': repo,
594
+ 'comment_id': comment_id,
595
+ }
596
+ call_leaf = leaf_template.format(**path_params)
597
+
598
+ query_params = None
599
+
600
+
601
+ if exp_status is None:
602
+ exp_status = [200]
603
+
604
+ resp = client.perform_call(
605
+ leaf=call_leaf,
606
+ method="GET",
607
+ params=query_params if query_params else None,
608
+ body=None,
609
+ exp_status=exp_status,
610
+ headers=header_params if header_params else None,
611
+ context_msg=None,
612
+ aspects=aspects,
613
+ )
614
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
615
+ rtnobj = None
616
+ else:
617
+ raw_data = resp.json()
618
+ rtnobj = PullRequestReviewComment.from_dict(raw_data)
619
+ return rtnobj
620
+
621
+ def list(self, owner: str, repo: str, *, state: Optional[str] = "open", head: Optional[str] = None, base: Optional[str] = None, sort: Optional[str] = "created", direction: 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[PullRequestSimple]:
622
+ """
623
+ List pull requests
624
+
625
+ Lists pull requests in a specified repository.
626
+
627
+ Draft pull requests are available in public repositories with GitHub
628
+ Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing
629
+ plans, and in public and private repositories with GitHub Team and GitHub Enterprise
630
+ Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)
631
+ in the GitHub Help documentation.
632
+
633
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
634
+
635
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
636
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
637
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
638
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
639
+ """
640
+ client = self.client
641
+ if aspects is None:
642
+ aspects = client.aspects
643
+
644
+ header_params = client.headers
645
+ if headers is not None:
646
+ header_params = headers
647
+
648
+ leaf_template = "/repos/{owner}/{repo}/pulls"
649
+ path_params = {
650
+ 'owner': owner,
651
+ 'repo': repo,
652
+ }
653
+ call_leaf = leaf_template.format(**path_params)
654
+
655
+ query_params = {}
656
+ if state is not None:
657
+ query_params['state'] = state
658
+ if head is not None:
659
+ query_params['head'] = head
660
+ if base is not None:
661
+ query_params['base'] = base
662
+ if sort is not None:
663
+ query_params['sort'] = sort
664
+ if direction is not None:
665
+ query_params['direction'] = direction
666
+ if per_page is not None:
667
+ query_params['per_page'] = per_page
668
+ if page is not None:
669
+ query_params['page'] = page
670
+
671
+
672
+ if exp_status is None:
673
+ exp_status = [200]
674
+
675
+ resp = client.perform_call(
676
+ leaf=call_leaf,
677
+ method="GET",
678
+ params=query_params if query_params else None,
679
+ body=None,
680
+ exp_status=exp_status,
681
+ headers=header_params if header_params else None,
682
+ context_msg=None,
683
+ aspects=aspects,
684
+ )
685
+ raw_data = resp.json()
686
+ items = [self._parse_item(item, PullRequestSimple) for item in raw_data]
687
+ rtnval = PagedList[PullRequestSimple](items, dict(resp.headers), raw_data)
688
+ return rtnval
689
+
690
+ def list_comments_for_review(self, owner: str, repo: str, pull_number: int, review_id: int, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[ReviewComment]:
691
+ """
692
+ List comments for a pull request review
693
+
694
+ Lists comments for a specific pull request review.
695
+
696
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
697
+
698
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
699
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
700
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
701
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
702
+ """
703
+ client = self.client
704
+ if aspects is None:
705
+ aspects = client.aspects
706
+
707
+ header_params = client.headers
708
+ if headers is not None:
709
+ header_params = headers
710
+
711
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
712
+ path_params = {
713
+ 'owner': owner,
714
+ 'repo': repo,
715
+ 'pull_number': pull_number,
716
+ 'review_id': review_id,
717
+ }
718
+ call_leaf = leaf_template.format(**path_params)
719
+
720
+ query_params = {}
721
+ if per_page is not None:
722
+ query_params['per_page'] = per_page
723
+ if page is not None:
724
+ query_params['page'] = page
725
+
726
+
727
+ if exp_status is None:
728
+ exp_status = [200]
729
+
730
+ resp = client.perform_call(
731
+ leaf=call_leaf,
732
+ method="GET",
733
+ params=query_params if query_params else None,
734
+ body=None,
735
+ exp_status=exp_status,
736
+ headers=header_params if header_params else None,
737
+ context_msg=None,
738
+ aspects=aspects,
739
+ )
740
+ raw_data = resp.json()
741
+ items = [self._parse_item(item, ReviewComment) for item in raw_data]
742
+ rtnval = PagedList[ReviewComment](items, dict(resp.headers), raw_data)
743
+ return rtnval
744
+
745
+ def list_commits(self, owner: str, repo: str, pull_number: int, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Commit]:
746
+ """
747
+ List commits on a pull request
748
+
749
+ Lists a maximum of 250 commits for a pull request. To receive a complete
750
+ commit list for pull requests with more than 250 commits, use the [List commits](https://docs.github.com/rest/commits/commits#list-commits)
751
+ endpoint.
752
+
753
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
754
+
755
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
756
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
757
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
758
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
759
+ """
760
+ client = self.client
761
+ if aspects is None:
762
+ aspects = client.aspects
763
+
764
+ header_params = client.headers
765
+ if headers is not None:
766
+ header_params = headers
767
+
768
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/commits"
769
+ path_params = {
770
+ 'owner': owner,
771
+ 'repo': repo,
772
+ 'pull_number': pull_number,
773
+ }
774
+ call_leaf = leaf_template.format(**path_params)
775
+
776
+ query_params = {}
777
+ if per_page is not None:
778
+ query_params['per_page'] = per_page
779
+ if page is not None:
780
+ query_params['page'] = page
781
+
782
+
783
+ if exp_status is None:
784
+ exp_status = [200]
785
+
786
+ resp = client.perform_call(
787
+ leaf=call_leaf,
788
+ method="GET",
789
+ params=query_params if query_params else None,
790
+ body=None,
791
+ exp_status=exp_status,
792
+ headers=header_params if header_params else None,
793
+ context_msg=None,
794
+ aspects=aspects,
795
+ )
796
+ raw_data = resp.json()
797
+ items = [self._parse_item(item, Commit) for item in raw_data]
798
+ rtnval = PagedList[Commit](items, dict(resp.headers), raw_data)
799
+ return rtnval
800
+
801
+ def list_files(self, owner: str, repo: str, pull_number: int, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[DiffEntry]:
802
+ """
803
+ List pull requests files
804
+
805
+ Lists the files in a specified pull request.
806
+
807
+ > [!NOTE]
808
+ > Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.
809
+
810
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
811
+
812
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
813
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
814
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
815
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
816
+ """
817
+ client = self.client
818
+ if aspects is None:
819
+ aspects = client.aspects
820
+
821
+ header_params = client.headers
822
+ if headers is not None:
823
+ header_params = headers
824
+
825
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/files"
826
+ path_params = {
827
+ 'owner': owner,
828
+ 'repo': repo,
829
+ 'pull_number': pull_number,
830
+ }
831
+ call_leaf = leaf_template.format(**path_params)
832
+
833
+ query_params = {}
834
+ if per_page is not None:
835
+ query_params['per_page'] = per_page
836
+ if page is not None:
837
+ query_params['page'] = page
838
+
839
+
840
+ if exp_status is None:
841
+ exp_status = [200]
842
+
843
+ resp = client.perform_call(
844
+ leaf=call_leaf,
845
+ method="GET",
846
+ params=query_params if query_params else None,
847
+ body=None,
848
+ exp_status=exp_status,
849
+ headers=header_params if header_params else None,
850
+ context_msg=None,
851
+ aspects=aspects,
852
+ )
853
+ raw_data = resp.json()
854
+ items = [self._parse_item(item, DiffEntry) for item in raw_data]
855
+ rtnval = PagedList[DiffEntry](items, dict(resp.headers), raw_data)
856
+ return rtnval
857
+
858
+ def list_requested_reviewers(self, owner: str, repo: str, pull_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReviewRequest:
859
+ """
860
+ Get all requested reviewers for a pull request
861
+
862
+ Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.
863
+ """
864
+ client = self.client
865
+ if aspects is None:
866
+ aspects = client.aspects
867
+
868
+ header_params = client.headers
869
+ if headers is not None:
870
+ header_params = headers
871
+
872
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
873
+ path_params = {
874
+ 'owner': owner,
875
+ 'repo': repo,
876
+ 'pull_number': pull_number,
877
+ }
878
+ call_leaf = leaf_template.format(**path_params)
879
+
880
+ query_params = None
881
+
882
+
883
+ if exp_status is None:
884
+ exp_status = [200]
885
+
886
+ resp = client.perform_call(
887
+ leaf=call_leaf,
888
+ method="GET",
889
+ params=query_params if query_params else None,
890
+ body=None,
891
+ exp_status=exp_status,
892
+ headers=header_params if header_params else None,
893
+ context_msg=None,
894
+ aspects=aspects,
895
+ )
896
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
897
+ rtnobj = None
898
+ else:
899
+ raw_data = resp.json()
900
+ rtnobj = PullRequestReviewRequest.from_dict(raw_data)
901
+ return rtnobj
902
+
903
+ def list_review_comments(self, owner: str, repo: str, pull_number: int, *, sort: Optional[str] = "created", direction: Optional[str] = None, since: 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[PullRequestReviewComment]:
904
+ """
905
+ List review comments on a pull request
906
+
907
+ Lists all review comments for a specified pull request. By default, review comments
908
+ are in ascending order by ID.
909
+
910
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
911
+
912
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
913
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
914
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
915
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
916
+ """
917
+ client = self.client
918
+ if aspects is None:
919
+ aspects = client.aspects
920
+
921
+ header_params = client.headers
922
+ if headers is not None:
923
+ header_params = headers
924
+
925
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/comments"
926
+ path_params = {
927
+ 'owner': owner,
928
+ 'repo': repo,
929
+ 'pull_number': pull_number,
930
+ }
931
+ call_leaf = leaf_template.format(**path_params)
932
+
933
+ query_params = {}
934
+ if sort is not None:
935
+ query_params['sort'] = sort
936
+ if direction is not None:
937
+ query_params['direction'] = direction
938
+ if since is not None:
939
+ query_params['since'] = since
940
+ if per_page is not None:
941
+ query_params['per_page'] = per_page
942
+ if page is not None:
943
+ query_params['page'] = page
944
+
945
+
946
+ if exp_status is None:
947
+ exp_status = [200]
948
+
949
+ resp = client.perform_call(
950
+ leaf=call_leaf,
951
+ method="GET",
952
+ params=query_params if query_params else None,
953
+ body=None,
954
+ exp_status=exp_status,
955
+ headers=header_params if header_params else None,
956
+ context_msg=None,
957
+ aspects=aspects,
958
+ )
959
+ raw_data = resp.json()
960
+ items = [self._parse_item(item, PullRequestReviewComment) for item in raw_data]
961
+ rtnval = PagedList[PullRequestReviewComment](items, dict(resp.headers), raw_data)
962
+ return rtnval
963
+
964
+ def list_review_comments_for_repo(self, owner: str, repo: str, *, sort: Optional[str] = None, direction: Optional[str] = None, since: 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[PullRequestReviewComment]:
965
+ """
966
+ List review comments in a repository
967
+
968
+ Lists review comments for all pull requests in a repository. By default,
969
+ review comments are in ascending order by ID.
970
+
971
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
972
+
973
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
974
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
975
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
976
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
977
+ """
978
+ client = self.client
979
+ if aspects is None:
980
+ aspects = client.aspects
981
+
982
+ header_params = client.headers
983
+ if headers is not None:
984
+ header_params = headers
985
+
986
+ leaf_template = "/repos/{owner}/{repo}/pulls/comments"
987
+ path_params = {
988
+ 'owner': owner,
989
+ 'repo': repo,
990
+ }
991
+ call_leaf = leaf_template.format(**path_params)
992
+
993
+ query_params = {}
994
+ if sort is not None:
995
+ query_params['sort'] = sort
996
+ if direction is not None:
997
+ query_params['direction'] = direction
998
+ if since is not None:
999
+ query_params['since'] = since
1000
+ if per_page is not None:
1001
+ query_params['per_page'] = per_page
1002
+ if page is not None:
1003
+ query_params['page'] = page
1004
+
1005
+
1006
+ if exp_status is None:
1007
+ exp_status = [200]
1008
+
1009
+ resp = client.perform_call(
1010
+ leaf=call_leaf,
1011
+ method="GET",
1012
+ params=query_params if query_params else None,
1013
+ body=None,
1014
+ exp_status=exp_status,
1015
+ headers=header_params if header_params else None,
1016
+ context_msg=None,
1017
+ aspects=aspects,
1018
+ )
1019
+ raw_data = resp.json()
1020
+ items = [self._parse_item(item, PullRequestReviewComment) for item in raw_data]
1021
+ rtnval = PagedList[PullRequestReviewComment](items, dict(resp.headers), raw_data)
1022
+ return rtnval
1023
+
1024
+ def list_reviews(self, owner: str, repo: str, pull_number: int, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[PullRequestReview]:
1025
+ """
1026
+ List reviews for a pull request
1027
+
1028
+ Lists all reviews for a specified pull request. The list of reviews returns in chronological order.
1029
+
1030
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1031
+
1032
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1033
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1034
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1035
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1036
+ """
1037
+ client = self.client
1038
+ if aspects is None:
1039
+ aspects = client.aspects
1040
+
1041
+ header_params = client.headers
1042
+ if headers is not None:
1043
+ header_params = headers
1044
+
1045
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews"
1046
+ path_params = {
1047
+ 'owner': owner,
1048
+ 'repo': repo,
1049
+ 'pull_number': pull_number,
1050
+ }
1051
+ call_leaf = leaf_template.format(**path_params)
1052
+
1053
+ query_params = {}
1054
+ if per_page is not None:
1055
+ query_params['per_page'] = per_page
1056
+ if page is not None:
1057
+ query_params['page'] = page
1058
+
1059
+
1060
+ if exp_status is None:
1061
+ exp_status = [200]
1062
+
1063
+ resp = client.perform_call(
1064
+ leaf=call_leaf,
1065
+ method="GET",
1066
+ params=query_params if query_params else None,
1067
+ body=None,
1068
+ exp_status=exp_status,
1069
+ headers=header_params if header_params else None,
1070
+ context_msg=None,
1071
+ aspects=aspects,
1072
+ )
1073
+ raw_data = resp.json()
1074
+ items = [self._parse_item(item, PullRequestReview) for item in raw_data]
1075
+ rtnval = PagedList[PullRequestReview](items, dict(resp.headers), raw_data)
1076
+ return rtnval
1077
+
1078
+ def merge(self, owner: str, repo: str, pull_number: int, body: Optional[Dict[str, Any]], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestMergeResult:
1079
+ """
1080
+ Merge a pull request
1081
+
1082
+ Merges a pull request into the base branch.
1083
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
1084
+ """
1085
+ client = self.client
1086
+ if aspects is None:
1087
+ aspects = client.aspects
1088
+
1089
+ header_params = client.headers
1090
+ if headers is not None:
1091
+ header_params = headers
1092
+
1093
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/merge"
1094
+ path_params = {
1095
+ 'owner': owner,
1096
+ 'repo': repo,
1097
+ 'pull_number': pull_number,
1098
+ }
1099
+ call_leaf = leaf_template.format(**path_params)
1100
+
1101
+ query_params = None
1102
+
1103
+
1104
+ if exp_status is None:
1105
+ exp_status = [200]
1106
+
1107
+ resp = client.perform_call(
1108
+ leaf=call_leaf,
1109
+ method="PUT",
1110
+ params=query_params if query_params else None,
1111
+ body=body,
1112
+ exp_status=exp_status,
1113
+ headers=header_params if header_params else None,
1114
+ context_msg=None,
1115
+ aspects=aspects,
1116
+ )
1117
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1118
+ rtnobj = None
1119
+ else:
1120
+ raw_data = resp.json()
1121
+ rtnobj = PullRequestMergeResult.from_dict(raw_data)
1122
+ return rtnobj
1123
+
1124
+ def remove_requested_reviewers(self, owner: str, repo: str, pull_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestSimple:
1125
+ """
1126
+ Remove requested reviewers from a pull request
1127
+
1128
+ Removes review requests from a pull request for a given set of users and/or teams.
1129
+ """
1130
+ client = self.client
1131
+ if aspects is None:
1132
+ aspects = client.aspects
1133
+
1134
+ header_params = client.headers
1135
+ if headers is not None:
1136
+ header_params = headers
1137
+
1138
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
1139
+ path_params = {
1140
+ 'owner': owner,
1141
+ 'repo': repo,
1142
+ 'pull_number': pull_number,
1143
+ }
1144
+ call_leaf = leaf_template.format(**path_params)
1145
+
1146
+ query_params = None
1147
+
1148
+
1149
+ if exp_status is None:
1150
+ exp_status = [200]
1151
+
1152
+ resp = client.perform_call(
1153
+ leaf=call_leaf,
1154
+ method="DELETE",
1155
+ params=query_params if query_params else None,
1156
+ body=body,
1157
+ exp_status=exp_status,
1158
+ headers=header_params if header_params else None,
1159
+ context_msg=None,
1160
+ aspects=aspects,
1161
+ )
1162
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1163
+ rtnobj = None
1164
+ else:
1165
+ raw_data = resp.json()
1166
+ rtnobj = PullRequestSimple.from_dict(raw_data)
1167
+ return rtnobj
1168
+
1169
+ def request_reviewers(self, owner: str, repo: str, pull_number: int, body: Union[str, str], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1170
+ """
1171
+ Request reviewers for a pull request
1172
+
1173
+ Requests reviews for a pull request from a given set of users and/or teams.
1174
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
1175
+ """
1176
+ client = self.client
1177
+ if aspects is None:
1178
+ aspects = client.aspects
1179
+
1180
+ header_params = client.headers
1181
+ if headers is not None:
1182
+ header_params = headers
1183
+
1184
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
1185
+ path_params = {
1186
+ 'owner': owner,
1187
+ 'repo': repo,
1188
+ 'pull_number': pull_number,
1189
+ }
1190
+ call_leaf = leaf_template.format(**path_params)
1191
+
1192
+ query_params = None
1193
+
1194
+
1195
+ if exp_status is None:
1196
+ exp_status = [201]
1197
+
1198
+ resp = client.perform_call(
1199
+ leaf=call_leaf,
1200
+ method="POST",
1201
+ params=query_params if query_params else None,
1202
+ body=body,
1203
+ exp_status=exp_status,
1204
+ headers=header_params if header_params else None,
1205
+ context_msg=None,
1206
+ aspects=aspects,
1207
+ )
1208
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1209
+ rtnval = None
1210
+ else:
1211
+ rtnval = resp.json()
1212
+ return rtnval
1213
+
1214
+ def submit_review(self, owner: str, repo: str, pull_number: int, review_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReview:
1215
+ """
1216
+ Submit a review for a pull request
1217
+
1218
+ Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see "[Create a review for a pull request](https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request)."
1219
+
1220
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1221
+
1222
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1223
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1224
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1225
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1226
+ """
1227
+ client = self.client
1228
+ if aspects is None:
1229
+ aspects = client.aspects
1230
+
1231
+ header_params = client.headers
1232
+ if headers is not None:
1233
+ header_params = headers
1234
+
1235
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
1236
+ path_params = {
1237
+ 'owner': owner,
1238
+ 'repo': repo,
1239
+ 'pull_number': pull_number,
1240
+ 'review_id': review_id,
1241
+ }
1242
+ call_leaf = leaf_template.format(**path_params)
1243
+
1244
+ query_params = None
1245
+
1246
+
1247
+ if exp_status is None:
1248
+ exp_status = [200]
1249
+
1250
+ resp = client.perform_call(
1251
+ leaf=call_leaf,
1252
+ method="POST",
1253
+ params=query_params if query_params else None,
1254
+ body=body,
1255
+ exp_status=exp_status,
1256
+ headers=header_params if header_params else None,
1257
+ context_msg=None,
1258
+ aspects=aspects,
1259
+ )
1260
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1261
+ rtnobj = None
1262
+ else:
1263
+ raw_data = resp.json()
1264
+ rtnobj = PullRequestReview.from_dict(raw_data)
1265
+ return rtnobj
1266
+
1267
+ def update(self, owner: str, repo: str, pull_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequest:
1268
+ """
1269
+ Update a pull request
1270
+
1271
+ Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
1272
+
1273
+ To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
1274
+
1275
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1276
+
1277
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1278
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1279
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1280
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1281
+ """
1282
+ client = self.client
1283
+ if aspects is None:
1284
+ aspects = client.aspects
1285
+
1286
+ header_params = client.headers
1287
+ if headers is not None:
1288
+ header_params = headers
1289
+
1290
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}"
1291
+ path_params = {
1292
+ 'owner': owner,
1293
+ 'repo': repo,
1294
+ 'pull_number': pull_number,
1295
+ }
1296
+ call_leaf = leaf_template.format(**path_params)
1297
+
1298
+ query_params = None
1299
+
1300
+
1301
+ if exp_status is None:
1302
+ exp_status = [200]
1303
+
1304
+ resp = client.perform_call(
1305
+ leaf=call_leaf,
1306
+ method="PATCH",
1307
+ params=query_params if query_params else None,
1308
+ body=body,
1309
+ exp_status=exp_status,
1310
+ headers=header_params if header_params else None,
1311
+ context_msg=None,
1312
+ aspects=aspects,
1313
+ )
1314
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1315
+ rtnobj = None
1316
+ else:
1317
+ raw_data = resp.json()
1318
+ rtnobj = PullRequest.from_dict(raw_data)
1319
+ return rtnobj
1320
+
1321
+ def update_branch(self, owner: str, repo: str, pull_number: int, body: Optional[Dict[str, Any]], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1322
+ """
1323
+ Update a pull request branch
1324
+
1325
+ Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch.
1326
+ Note: If making a request on behalf of a GitHub App you must also have permissions to write the contents of the head repository.
1327
+ """
1328
+ client = self.client
1329
+ if aspects is None:
1330
+ aspects = client.aspects
1331
+
1332
+ header_params = client.headers
1333
+ if headers is not None:
1334
+ header_params = headers
1335
+
1336
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
1337
+ path_params = {
1338
+ 'owner': owner,
1339
+ 'repo': repo,
1340
+ 'pull_number': pull_number,
1341
+ }
1342
+ call_leaf = leaf_template.format(**path_params)
1343
+
1344
+ query_params = None
1345
+
1346
+
1347
+ if exp_status is None:
1348
+ exp_status = [202]
1349
+
1350
+ resp = client.perform_call(
1351
+ leaf=call_leaf,
1352
+ method="PUT",
1353
+ params=query_params if query_params else None,
1354
+ body=body,
1355
+ exp_status=exp_status,
1356
+ headers=header_params if header_params else None,
1357
+ context_msg=None,
1358
+ aspects=aspects,
1359
+ )
1360
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1361
+ rtnval = None
1362
+ else:
1363
+ rtnval = resp.json()
1364
+ return rtnval
1365
+
1366
+ def update_review(self, owner: str, repo: str, pull_number: int, review_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PullRequestReview:
1367
+ """
1368
+ Update a review for a pull request
1369
+
1370
+ Updates the contents of a specified review summary comment.
1371
+
1372
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1373
+
1374
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1375
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1376
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1377
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1378
+ """
1379
+ client = self.client
1380
+ if aspects is None:
1381
+ aspects = client.aspects
1382
+
1383
+ header_params = client.headers
1384
+ if headers is not None:
1385
+ header_params = headers
1386
+
1387
+ leaf_template = "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
1388
+ path_params = {
1389
+ 'owner': owner,
1390
+ 'repo': repo,
1391
+ 'pull_number': pull_number,
1392
+ 'review_id': review_id,
1393
+ }
1394
+ call_leaf = leaf_template.format(**path_params)
1395
+
1396
+ query_params = None
1397
+
1398
+
1399
+ if exp_status is None:
1400
+ exp_status = [200]
1401
+
1402
+ resp = client.perform_call(
1403
+ leaf=call_leaf,
1404
+ method="PUT",
1405
+ params=query_params if query_params else None,
1406
+ body=body,
1407
+ exp_status=exp_status,
1408
+ headers=header_params if header_params else None,
1409
+ context_msg=None,
1410
+ aspects=aspects,
1411
+ )
1412
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1413
+ rtnobj = None
1414
+ else:
1415
+ raw_data = resp.json()
1416
+ rtnobj = PullRequestReview.from_dict(raw_data)
1417
+ return rtnobj
1418
+
1419
+ def update_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) -> PullRequestReviewComment:
1420
+ """
1421
+ Update a review comment for a pull request
1422
+
1423
+ Edits the content of a specified review comment.
1424
+
1425
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1426
+
1427
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
1428
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1429
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1430
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1431
+ """
1432
+ client = self.client
1433
+ if aspects is None:
1434
+ aspects = client.aspects
1435
+
1436
+ header_params = client.headers
1437
+ if headers is not None:
1438
+ header_params = headers
1439
+
1440
+ leaf_template = "/repos/{owner}/{repo}/pulls/comments/{comment_id}"
1441
+ path_params = {
1442
+ 'owner': owner,
1443
+ 'repo': repo,
1444
+ 'comment_id': comment_id,
1445
+ }
1446
+ call_leaf = leaf_template.format(**path_params)
1447
+
1448
+ query_params = None
1449
+
1450
+
1451
+ if exp_status is None:
1452
+ exp_status = [200]
1453
+
1454
+ resp = client.perform_call(
1455
+ leaf=call_leaf,
1456
+ method="PATCH",
1457
+ params=query_params if query_params else None,
1458
+ body=body,
1459
+ exp_status=exp_status,
1460
+ headers=header_params if header_params else None,
1461
+ context_msg=None,
1462
+ aspects=aspects,
1463
+ )
1464
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1465
+ rtnobj = None
1466
+ else:
1467
+ raw_data = resp.json()
1468
+ rtnobj = PullRequestReviewComment.from_dict(raw_data)
1469
+ return rtnobj