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,2460 @@
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.addedtoprojectissueevent import AddedToProjectIssueEvent
9
+ from ccai.restclient.github.public.schemas.assignedissueevent import AssignedIssueEvent
10
+ from ccai.restclient.github.public.schemas.convertednotetoissueissueevent import ConvertedNoteToIssueIssueEvent
11
+ from ccai.restclient.github.public.schemas.demilestonedissueevent import DemilestonedIssueEvent
12
+ from ccai.restclient.github.public.schemas.issues import Issue
13
+ from ccai.restclient.github.public.schemas.issues import IssueComment
14
+ from ccai.restclient.github.public.schemas.issues import IssueEvent
15
+ from ccai.restclient.github.public.schemas.issues import Label
16
+ from ccai.restclient.github.public.schemas.issues import Milestone
17
+ from ccai.restclient.github.public.schemas.labeledissueevent import LabeledIssueEvent
18
+ from ccai.restclient.github.public.schemas.lockedissueevent import LockedIssueEvent
19
+ from ccai.restclient.github.public.schemas.milestonedissueevent import MilestonedIssueEvent
20
+ from ccai.restclient.github.public.schemas.movedcolumninprojectissueevent import MovedColumnInProjectIssueEvent
21
+ from ccai.restclient.github.public.schemas.removedfromprojectissueevent import RemovedFromProjectIssueEvent
22
+ from ccai.restclient.github.public.schemas.renamedissueevent import RenamedIssueEvent
23
+ from ccai.restclient.github.public.schemas.repos import SimpleUser
24
+ from ccai.restclient.github.public.schemas.reviewdismissedissueevent import ReviewDismissedIssueEvent
25
+ from ccai.restclient.github.public.schemas.reviewrequestedissueevent import ReviewRequestedIssueEvent
26
+ from ccai.restclient.github.public.schemas.reviewrequestremovedissueevent import ReviewRequestRemovedIssueEvent
27
+ from ccai.restclient.github.public.schemas.statechangeissueevent import StateChangeIssueEvent
28
+ from ccai.restclient.github.public.schemas.timelineassignedissueevent import TimelineAssignedIssueEvent
29
+ from ccai.restclient.github.public.schemas.timelinecommentevent import TimelineCommentEvent
30
+ from ccai.restclient.github.public.schemas.timelinecommitcommentedevent import TimelineCommitCommentedEvent
31
+ from ccai.restclient.github.public.schemas.timelinecommittedevent import TimelineCommittedEvent
32
+ from ccai.restclient.github.public.schemas.timelinecrossreferencedevent import TimelineCrossReferencedEvent
33
+ from ccai.restclient.github.public.schemas.timelinelinecommentedevent import TimelineLineCommentedEvent
34
+ from ccai.restclient.github.public.schemas.timelinereviewedevent import TimelineReviewedEvent
35
+ from ccai.restclient.github.public.schemas.timelineunassignedissueevent import TimelineUnassignedIssueEvent
36
+ from ccai.restclient.github.public.schemas.unassignedissueevent import UnassignedIssueEvent
37
+ from ccai.restclient.github.public.schemas.unlabeledissueevent import UnlabeledIssueEvent
38
+
39
+
40
+ class IssuesApiGroup(RestApiGroup):
41
+ """
42
+ Interact with GitHub Issues.
43
+ """
44
+
45
+ def add_assignees(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
46
+ """
47
+ Add assignees to an issue
48
+
49
+ Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.
50
+ """
51
+ client = self.client
52
+ if aspects is None:
53
+ aspects = client.aspects
54
+
55
+ header_params = client.headers
56
+ if headers is not None:
57
+ header_params = headers
58
+
59
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/assignees"
60
+ path_params = {
61
+ 'owner': owner,
62
+ 'repo': repo,
63
+ 'issue_number': issue_number,
64
+ }
65
+ call_leaf = leaf_template.format(**path_params)
66
+
67
+ query_params = None
68
+
69
+
70
+ if exp_status is None:
71
+ exp_status = [201]
72
+
73
+ resp = client.perform_call(
74
+ leaf=call_leaf,
75
+ method="POST",
76
+ params=query_params if query_params else None,
77
+ body=body,
78
+ exp_status=exp_status,
79
+ headers=header_params if header_params else None,
80
+ context_msg=None,
81
+ aspects=aspects,
82
+ )
83
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
84
+ rtnval = None
85
+ else:
86
+ rtnval = resp.json()
87
+ return rtnval
88
+
89
+ def add_blocked_by_dependency(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
90
+ """
91
+ Add a dependency an issue is blocked by
92
+
93
+ You can use the REST API to add a 'blocked by' relationship to an issue.
94
+
95
+ Creating content too quickly using this endpoint may result in secondary rate limiting.
96
+ 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)
97
+ and [Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).
98
+
99
+ 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).
100
+
101
+ - **`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.
102
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`.
103
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`.
104
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
105
+ """
106
+ client = self.client
107
+ if aspects is None:
108
+ aspects = client.aspects
109
+
110
+ header_params = client.headers
111
+ if headers is not None:
112
+ header_params = headers
113
+
114
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
115
+ path_params = {
116
+ 'owner': owner,
117
+ 'repo': repo,
118
+ 'issue_number': issue_number,
119
+ }
120
+ call_leaf = leaf_template.format(**path_params)
121
+
122
+ query_params = None
123
+
124
+
125
+ if exp_status is None:
126
+ exp_status = [201]
127
+
128
+ resp = client.perform_call(
129
+ leaf=call_leaf,
130
+ method="POST",
131
+ params=query_params if query_params else None,
132
+ body=body,
133
+ exp_status=exp_status,
134
+ headers=header_params if header_params else None,
135
+ context_msg=None,
136
+ aspects=aspects,
137
+ )
138
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
139
+ rtnval = None
140
+ else:
141
+ rtnval = resp.json()
142
+ return rtnval
143
+
144
+ def add_labels(self, owner: str, repo: str, issue_number: int, body: Union[Dict[str, Any], List[str], Dict[str, Any], List[Dict[str, Any]], str], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[Label]:
145
+ """
146
+ Add labels to an issue
147
+
148
+ Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue.
149
+ """
150
+ client = self.client
151
+ if aspects is None:
152
+ aspects = client.aspects
153
+
154
+ header_params = client.headers
155
+ if headers is not None:
156
+ header_params = headers
157
+
158
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/labels"
159
+ path_params = {
160
+ 'owner': owner,
161
+ 'repo': repo,
162
+ 'issue_number': issue_number,
163
+ }
164
+ call_leaf = leaf_template.format(**path_params)
165
+
166
+ query_params = None
167
+
168
+
169
+ if exp_status is None:
170
+ exp_status = [200]
171
+
172
+ resp = client.perform_call(
173
+ leaf=call_leaf,
174
+ method="POST",
175
+ params=query_params if query_params else None,
176
+ body=body,
177
+ exp_status=exp_status,
178
+ headers=header_params if header_params else None,
179
+ context_msg=None,
180
+ aspects=aspects,
181
+ )
182
+ raw_data = resp.json()
183
+ items = [self._parse_item(item, Label) for item in raw_data]
184
+ return items
185
+
186
+ def add_sub_issue(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
187
+ """
188
+ Add sub-issue
189
+
190
+ You can use the REST API to add sub-issues to issues.
191
+
192
+ Creating content too quickly using this endpoint may result in secondary rate limiting.
193
+ 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)"
194
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
195
+
196
+ 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)."
197
+
198
+ - **`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.
199
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
200
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
201
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
202
+ """
203
+ client = self.client
204
+ if aspects is None:
205
+ aspects = client.aspects
206
+
207
+ header_params = client.headers
208
+ if headers is not None:
209
+ header_params = headers
210
+
211
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
212
+ path_params = {
213
+ 'owner': owner,
214
+ 'repo': repo,
215
+ 'issue_number': issue_number,
216
+ }
217
+ call_leaf = leaf_template.format(**path_params)
218
+
219
+ query_params = None
220
+
221
+
222
+ if exp_status is None:
223
+ exp_status = [201]
224
+
225
+ resp = client.perform_call(
226
+ leaf=call_leaf,
227
+ method="POST",
228
+ params=query_params if query_params else None,
229
+ body=body,
230
+ exp_status=exp_status,
231
+ headers=header_params if header_params else None,
232
+ context_msg=None,
233
+ aspects=aspects,
234
+ )
235
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
236
+ rtnval = None
237
+ else:
238
+ rtnval = resp.json()
239
+ return rtnval
240
+
241
+ def check_user_can_be_assigned(self, owner: str, repo: str, assignee: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
242
+ """
243
+ Check if a user can be assigned
244
+
245
+ Checks if a user has permission to be assigned to an issue in this repository.
246
+
247
+ If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.
248
+
249
+ Otherwise a `404` status code is returned.
250
+ """
251
+ client = self.client
252
+ if aspects is None:
253
+ aspects = client.aspects
254
+
255
+ header_params = client.headers
256
+ if headers is not None:
257
+ header_params = headers
258
+
259
+ leaf_template = "/repos/{owner}/{repo}/assignees/{assignee}"
260
+ path_params = {
261
+ 'owner': owner,
262
+ 'repo': repo,
263
+ 'assignee': assignee,
264
+ }
265
+ call_leaf = leaf_template.format(**path_params)
266
+
267
+ query_params = None
268
+
269
+
270
+ if exp_status is None:
271
+ exp_status = [204]
272
+
273
+ resp = client.perform_call(
274
+ leaf=call_leaf,
275
+ method="GET",
276
+ params=query_params if query_params else None,
277
+ body=None,
278
+ exp_status=exp_status,
279
+ headers=header_params if header_params else None,
280
+ context_msg=None,
281
+ aspects=aspects,
282
+ )
283
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
284
+ rtnval = None
285
+ else:
286
+ rtnval = resp.json()
287
+ return rtnval
288
+
289
+ def check_user_can_be_assigned_to_issue(self, owner: str, repo: str, issue_number: int, assignee: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
290
+ """
291
+ Check if a user can be assigned to a issue
292
+
293
+ Checks if a user has permission to be assigned to a specific issue.
294
+
295
+ If the `assignee` can be assigned to this issue, a `204` status code with no content is returned.
296
+
297
+ Otherwise a `404` status code is returned.
298
+ """
299
+ client = self.client
300
+ if aspects is None:
301
+ aspects = client.aspects
302
+
303
+ header_params = client.headers
304
+ if headers is not None:
305
+ header_params = headers
306
+
307
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
308
+ path_params = {
309
+ 'owner': owner,
310
+ 'repo': repo,
311
+ 'issue_number': issue_number,
312
+ 'assignee': assignee,
313
+ }
314
+ call_leaf = leaf_template.format(**path_params)
315
+
316
+ query_params = None
317
+
318
+
319
+ if exp_status is None:
320
+ exp_status = [204]
321
+
322
+ resp = client.perform_call(
323
+ leaf=call_leaf,
324
+ method="GET",
325
+ params=query_params if query_params else None,
326
+ body=None,
327
+ exp_status=exp_status,
328
+ headers=header_params if header_params else None,
329
+ context_msg=None,
330
+ aspects=aspects,
331
+ )
332
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
333
+ rtnval = None
334
+ else:
335
+ rtnval = resp.json()
336
+ return rtnval
337
+
338
+ 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:
339
+ """
340
+ Create an issue
341
+
342
+ Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://docs.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.
343
+
344
+ 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)"
345
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
346
+
347
+ 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)."
348
+
349
+ - **`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.
350
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
351
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
352
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
353
+ """
354
+ client = self.client
355
+ if aspects is None:
356
+ aspects = client.aspects
357
+
358
+ header_params = client.headers
359
+ if headers is not None:
360
+ header_params = headers
361
+
362
+ leaf_template = "/repos/{owner}/{repo}/issues"
363
+ path_params = {
364
+ 'owner': owner,
365
+ 'repo': repo,
366
+ }
367
+ call_leaf = leaf_template.format(**path_params)
368
+
369
+ query_params = None
370
+
371
+
372
+ if exp_status is None:
373
+ exp_status = [201]
374
+
375
+ resp = client.perform_call(
376
+ leaf=call_leaf,
377
+ method="POST",
378
+ params=query_params if query_params else None,
379
+ body=body,
380
+ exp_status=exp_status,
381
+ headers=header_params if header_params else None,
382
+ context_msg=None,
383
+ aspects=aspects,
384
+ )
385
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
386
+ rtnval = None
387
+ else:
388
+ rtnval = resp.json()
389
+ return rtnval
390
+
391
+ def create_comment(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
392
+ """
393
+ Create an issue comment
394
+
395
+ You can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
396
+
397
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications).
398
+ Creating content too quickly using this endpoint may result in secondary rate limiting.
399
+ 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)"
400
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
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.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.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
406
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
407
+ - **`application/vnd.github.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}/issues/{issue_number}/comments"
418
+ path_params = {
419
+ 'owner': owner,
420
+ 'repo': repo,
421
+ 'issue_number': issue_number,
422
+ }
423
+ call_leaf = leaf_template.format(**path_params)
424
+
425
+ query_params = None
426
+
427
+
428
+ if exp_status is None:
429
+ exp_status = [201]
430
+
431
+ resp = client.perform_call(
432
+ leaf=call_leaf,
433
+ method="POST",
434
+ params=query_params if query_params else None,
435
+ body=body,
436
+ exp_status=exp_status,
437
+ headers=header_params if header_params else None,
438
+ context_msg=None,
439
+ aspects=aspects,
440
+ )
441
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
442
+ rtnval = None
443
+ else:
444
+ rtnval = resp.json()
445
+ return rtnval
446
+
447
+ def create_label(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:
448
+ """
449
+ Create a label
450
+
451
+ Creates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid [hexadecimal color code](http://www.color-hex.com/).
452
+ """
453
+ client = self.client
454
+ if aspects is None:
455
+ aspects = client.aspects
456
+
457
+ header_params = client.headers
458
+ if headers is not None:
459
+ header_params = headers
460
+
461
+ leaf_template = "/repos/{owner}/{repo}/labels"
462
+ path_params = {
463
+ 'owner': owner,
464
+ 'repo': repo,
465
+ }
466
+ call_leaf = leaf_template.format(**path_params)
467
+
468
+ query_params = None
469
+
470
+
471
+ if exp_status is None:
472
+ exp_status = [201]
473
+
474
+ resp = client.perform_call(
475
+ leaf=call_leaf,
476
+ method="POST",
477
+ params=query_params if query_params else None,
478
+ body=body,
479
+ exp_status=exp_status,
480
+ headers=header_params if header_params else None,
481
+ context_msg=None,
482
+ aspects=aspects,
483
+ )
484
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
485
+ rtnval = None
486
+ else:
487
+ rtnval = resp.json()
488
+ return rtnval
489
+
490
+ def create_milestone(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:
491
+ """
492
+ Create a milestone
493
+
494
+ Creates a milestone.
495
+ """
496
+ client = self.client
497
+ if aspects is None:
498
+ aspects = client.aspects
499
+
500
+ header_params = client.headers
501
+ if headers is not None:
502
+ header_params = headers
503
+
504
+ leaf_template = "/repos/{owner}/{repo}/milestones"
505
+ path_params = {
506
+ 'owner': owner,
507
+ 'repo': repo,
508
+ }
509
+ call_leaf = leaf_template.format(**path_params)
510
+
511
+ query_params = None
512
+
513
+
514
+ if exp_status is None:
515
+ exp_status = [201]
516
+
517
+ resp = client.perform_call(
518
+ leaf=call_leaf,
519
+ method="POST",
520
+ params=query_params if query_params else None,
521
+ body=body,
522
+ exp_status=exp_status,
523
+ headers=header_params if header_params else None,
524
+ context_msg=None,
525
+ aspects=aspects,
526
+ )
527
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
528
+ rtnval = None
529
+ else:
530
+ rtnval = resp.json()
531
+ return rtnval
532
+
533
+ def delete_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:
534
+ """
535
+ Delete an issue comment
536
+
537
+ You can use the REST API to delete comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
538
+ """
539
+ client = self.client
540
+ if aspects is None:
541
+ aspects = client.aspects
542
+
543
+ header_params = client.headers
544
+ if headers is not None:
545
+ header_params = headers
546
+
547
+ leaf_template = "/repos/{owner}/{repo}/issues/comments/{comment_id}"
548
+ path_params = {
549
+ 'owner': owner,
550
+ 'repo': repo,
551
+ 'comment_id': comment_id,
552
+ }
553
+ call_leaf = leaf_template.format(**path_params)
554
+
555
+ query_params = None
556
+
557
+
558
+ if exp_status is None:
559
+ exp_status = [204]
560
+
561
+ resp = client.perform_call(
562
+ leaf=call_leaf,
563
+ method="DELETE",
564
+ params=query_params if query_params else None,
565
+ body=None,
566
+ exp_status=exp_status,
567
+ headers=header_params if header_params else None,
568
+ context_msg=None,
569
+ aspects=aspects,
570
+ )
571
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
572
+ rtnval = None
573
+ else:
574
+ rtnval = resp.json()
575
+ return rtnval
576
+
577
+ def delete_label(self, owner: str, repo: str, name: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
578
+ """
579
+ Delete a label
580
+
581
+ Deletes a label using the given label name.
582
+ """
583
+ client = self.client
584
+ if aspects is None:
585
+ aspects = client.aspects
586
+
587
+ header_params = client.headers
588
+ if headers is not None:
589
+ header_params = headers
590
+
591
+ leaf_template = "/repos/{owner}/{repo}/labels/{name}"
592
+ path_params = {
593
+ 'owner': owner,
594
+ 'repo': repo,
595
+ 'name': name,
596
+ }
597
+ call_leaf = leaf_template.format(**path_params)
598
+
599
+ query_params = None
600
+
601
+
602
+ if exp_status is None:
603
+ exp_status = [204]
604
+
605
+ resp = client.perform_call(
606
+ leaf=call_leaf,
607
+ method="DELETE",
608
+ params=query_params if query_params else None,
609
+ body=None,
610
+ exp_status=exp_status,
611
+ headers=header_params if header_params else None,
612
+ context_msg=None,
613
+ aspects=aspects,
614
+ )
615
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
616
+ rtnval = None
617
+ else:
618
+ rtnval = resp.json()
619
+ return rtnval
620
+
621
+ def delete_milestone(self, owner: str, repo: str, milestone_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
622
+ """
623
+ Delete a milestone
624
+
625
+ Deletes a milestone using the given milestone number.
626
+ """
627
+ client = self.client
628
+ if aspects is None:
629
+ aspects = client.aspects
630
+
631
+ header_params = client.headers
632
+ if headers is not None:
633
+ header_params = headers
634
+
635
+ leaf_template = "/repos/{owner}/{repo}/milestones/{milestone_number}"
636
+ path_params = {
637
+ 'owner': owner,
638
+ 'repo': repo,
639
+ 'milestone_number': milestone_number,
640
+ }
641
+ call_leaf = leaf_template.format(**path_params)
642
+
643
+ query_params = None
644
+
645
+
646
+ if exp_status is None:
647
+ exp_status = [204]
648
+
649
+ resp = client.perform_call(
650
+ leaf=call_leaf,
651
+ method="DELETE",
652
+ params=query_params if query_params else None,
653
+ body=None,
654
+ exp_status=exp_status,
655
+ headers=header_params if header_params else None,
656
+ context_msg=None,
657
+ aspects=aspects,
658
+ )
659
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
660
+ rtnval = None
661
+ else:
662
+ rtnval = resp.json()
663
+ return rtnval
664
+
665
+ def get(self, owner: str, repo: str, issue_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Issue:
666
+ """
667
+ Get an issue
668
+
669
+ The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api#follow-redirects) if the issue was
670
+ [transferred](https://docs.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If
671
+ the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API
672
+ returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read
673
+ access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe
674
+ to the [`issues`](https://docs.github.com/webhooks/event-payloads/#issues) webhook.
675
+
676
+ > [!NOTE]
677
+ > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
678
+
679
+ 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)."
680
+
681
+ - **`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.
682
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
683
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
684
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
685
+ """
686
+ client = self.client
687
+ if aspects is None:
688
+ aspects = client.aspects
689
+
690
+ header_params = client.headers
691
+ if headers is not None:
692
+ header_params = headers
693
+
694
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}"
695
+ path_params = {
696
+ 'owner': owner,
697
+ 'repo': repo,
698
+ 'issue_number': issue_number,
699
+ }
700
+ call_leaf = leaf_template.format(**path_params)
701
+
702
+ query_params = None
703
+
704
+
705
+ if exp_status is None:
706
+ exp_status = [200]
707
+
708
+ resp = client.perform_call(
709
+ leaf=call_leaf,
710
+ method="GET",
711
+ params=query_params if query_params else None,
712
+ body=None,
713
+ exp_status=exp_status,
714
+ headers=header_params if header_params else None,
715
+ context_msg=None,
716
+ aspects=aspects,
717
+ )
718
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
719
+ rtnobj = None
720
+ else:
721
+ raw_data = resp.json()
722
+ rtnobj = Issue.from_dict(raw_data)
723
+ return rtnobj
724
+
725
+ def get_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) -> IssueComment:
726
+ """
727
+ Get an issue comment
728
+
729
+ You can use the REST API to get comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
730
+
731
+ 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)."
732
+
733
+ - **`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.
734
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
735
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
736
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
737
+ """
738
+ client = self.client
739
+ if aspects is None:
740
+ aspects = client.aspects
741
+
742
+ header_params = client.headers
743
+ if headers is not None:
744
+ header_params = headers
745
+
746
+ leaf_template = "/repos/{owner}/{repo}/issues/comments/{comment_id}"
747
+ path_params = {
748
+ 'owner': owner,
749
+ 'repo': repo,
750
+ 'comment_id': comment_id,
751
+ }
752
+ call_leaf = leaf_template.format(**path_params)
753
+
754
+ query_params = None
755
+
756
+
757
+ if exp_status is None:
758
+ exp_status = [200]
759
+
760
+ resp = client.perform_call(
761
+ leaf=call_leaf,
762
+ method="GET",
763
+ params=query_params if query_params else None,
764
+ body=None,
765
+ exp_status=exp_status,
766
+ headers=header_params if header_params else None,
767
+ context_msg=None,
768
+ aspects=aspects,
769
+ )
770
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
771
+ rtnobj = None
772
+ else:
773
+ raw_data = resp.json()
774
+ rtnobj = IssueComment.from_dict(raw_data)
775
+ return rtnobj
776
+
777
+ def get_event(self, owner: str, repo: str, event_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> IssueEvent:
778
+ """
779
+ Get an issue event
780
+
781
+ Gets a single event by the event id.
782
+ """
783
+ client = self.client
784
+ if aspects is None:
785
+ aspects = client.aspects
786
+
787
+ header_params = client.headers
788
+ if headers is not None:
789
+ header_params = headers
790
+
791
+ leaf_template = "/repos/{owner}/{repo}/issues/events/{event_id}"
792
+ path_params = {
793
+ 'owner': owner,
794
+ 'repo': repo,
795
+ 'event_id': event_id,
796
+ }
797
+ call_leaf = leaf_template.format(**path_params)
798
+
799
+ query_params = None
800
+
801
+
802
+ if exp_status is None:
803
+ exp_status = [200]
804
+
805
+ resp = client.perform_call(
806
+ leaf=call_leaf,
807
+ method="GET",
808
+ params=query_params if query_params else None,
809
+ body=None,
810
+ exp_status=exp_status,
811
+ headers=header_params if header_params else None,
812
+ context_msg=None,
813
+ aspects=aspects,
814
+ )
815
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
816
+ rtnobj = None
817
+ else:
818
+ raw_data = resp.json()
819
+ rtnobj = IssueEvent.from_dict(raw_data)
820
+ return rtnobj
821
+
822
+ def get_label(self, owner: str, repo: str, name: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Label:
823
+ """
824
+ Get a label
825
+
826
+ Gets a label using the given name.
827
+ """
828
+ client = self.client
829
+ if aspects is None:
830
+ aspects = client.aspects
831
+
832
+ header_params = client.headers
833
+ if headers is not None:
834
+ header_params = headers
835
+
836
+ leaf_template = "/repos/{owner}/{repo}/labels/{name}"
837
+ path_params = {
838
+ 'owner': owner,
839
+ 'repo': repo,
840
+ 'name': name,
841
+ }
842
+ call_leaf = leaf_template.format(**path_params)
843
+
844
+ query_params = None
845
+
846
+
847
+ if exp_status is None:
848
+ exp_status = [200]
849
+
850
+ resp = client.perform_call(
851
+ leaf=call_leaf,
852
+ method="GET",
853
+ params=query_params if query_params else None,
854
+ body=None,
855
+ exp_status=exp_status,
856
+ headers=header_params if header_params else None,
857
+ context_msg=None,
858
+ aspects=aspects,
859
+ )
860
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
861
+ rtnobj = None
862
+ else:
863
+ raw_data = resp.json()
864
+ rtnobj = Label.from_dict(raw_data)
865
+ return rtnobj
866
+
867
+ def get_milestone(self, owner: str, repo: str, milestone_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Milestone:
868
+ """
869
+ Get a milestone
870
+
871
+ Gets a milestone using the given milestone number.
872
+ """
873
+ client = self.client
874
+ if aspects is None:
875
+ aspects = client.aspects
876
+
877
+ header_params = client.headers
878
+ if headers is not None:
879
+ header_params = headers
880
+
881
+ leaf_template = "/repos/{owner}/{repo}/milestones/{milestone_number}"
882
+ path_params = {
883
+ 'owner': owner,
884
+ 'repo': repo,
885
+ 'milestone_number': milestone_number,
886
+ }
887
+ call_leaf = leaf_template.format(**path_params)
888
+
889
+ query_params = None
890
+
891
+
892
+ if exp_status is None:
893
+ exp_status = [200]
894
+
895
+ resp = client.perform_call(
896
+ leaf=call_leaf,
897
+ method="GET",
898
+ params=query_params if query_params else None,
899
+ body=None,
900
+ exp_status=exp_status,
901
+ headers=header_params if header_params else None,
902
+ context_msg=None,
903
+ aspects=aspects,
904
+ )
905
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
906
+ rtnobj = None
907
+ else:
908
+ raw_data = resp.json()
909
+ rtnobj = Milestone.from_dict(raw_data)
910
+ return rtnobj
911
+
912
+ def list(self, *, filter: Optional[str] = "assigned", state: Optional[str] = "open", labels: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", since: Optional[str] = None, collab: Optional[bool] = None, orgs: Optional[bool] = None, owned: Optional[bool] = None, pulls: Optional[bool] = 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[Issue]:
913
+ """
914
+ List issues assigned to the authenticated user
915
+
916
+ List issues assigned to the authenticated user across all visible repositories including owned repositories, member
917
+ repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not
918
+ necessarily assigned to you.
919
+
920
+ > [!NOTE]
921
+ > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
922
+
923
+ 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)."
924
+
925
+ - **`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.
926
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
927
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
928
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
929
+ """
930
+ client = self.client
931
+ if aspects is None:
932
+ aspects = client.aspects
933
+
934
+ header_params = client.headers
935
+ if headers is not None:
936
+ header_params = headers
937
+
938
+ call_leaf = "/issues"
939
+
940
+ query_params = {}
941
+ if filter is not None:
942
+ query_params['filter'] = filter
943
+ if state is not None:
944
+ query_params['state'] = state
945
+ if labels is not None:
946
+ query_params['labels'] = labels
947
+ if sort is not None:
948
+ query_params['sort'] = sort
949
+ if direction is not None:
950
+ query_params['direction'] = direction
951
+ if since is not None:
952
+ query_params['since'] = since
953
+ if collab is not None:
954
+ query_params['collab'] = collab
955
+ if orgs is not None:
956
+ query_params['orgs'] = orgs
957
+ if owned is not None:
958
+ query_params['owned'] = owned
959
+ if pulls is not None:
960
+ query_params['pulls'] = pulls
961
+ if per_page is not None:
962
+ query_params['per_page'] = per_page
963
+ if page is not None:
964
+ query_params['page'] = page
965
+
966
+
967
+ if exp_status is None:
968
+ exp_status = [200]
969
+
970
+ resp = client.perform_call(
971
+ leaf=call_leaf,
972
+ method="GET",
973
+ params=query_params if query_params else None,
974
+ body=None,
975
+ exp_status=exp_status,
976
+ headers=header_params if header_params else None,
977
+ context_msg=None,
978
+ aspects=aspects,
979
+ )
980
+ raw_data = resp.json()
981
+ items = [self._parse_item(item, Issue) for item in raw_data]
982
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
983
+ return rtnval
984
+
985
+ def list_assignees(self, owner: str, repo: str, *, 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[SimpleUser]:
986
+ """
987
+ List assignees
988
+
989
+ Lists the [available assignees](https://docs.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.
990
+ """
991
+ client = self.client
992
+ if aspects is None:
993
+ aspects = client.aspects
994
+
995
+ header_params = client.headers
996
+ if headers is not None:
997
+ header_params = headers
998
+
999
+ leaf_template = "/repos/{owner}/{repo}/assignees"
1000
+ path_params = {
1001
+ 'owner': owner,
1002
+ 'repo': repo,
1003
+ }
1004
+ call_leaf = leaf_template.format(**path_params)
1005
+
1006
+ query_params = {}
1007
+ if per_page is not None:
1008
+ query_params['per_page'] = per_page
1009
+ if page is not None:
1010
+ query_params['page'] = page
1011
+
1012
+
1013
+ if exp_status is None:
1014
+ exp_status = [200]
1015
+
1016
+ resp = client.perform_call(
1017
+ leaf=call_leaf,
1018
+ method="GET",
1019
+ params=query_params if query_params else None,
1020
+ body=None,
1021
+ exp_status=exp_status,
1022
+ headers=header_params if header_params else None,
1023
+ context_msg=None,
1024
+ aspects=aspects,
1025
+ )
1026
+ raw_data = resp.json()
1027
+ items = [self._parse_item(item, SimpleUser) for item in raw_data]
1028
+ rtnval = PagedList[SimpleUser](items, dict(resp.headers), raw_data)
1029
+ return rtnval
1030
+
1031
+ def list_comments(self, owner: str, repo: str, issue_number: int, *, 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[IssueComment]:
1032
+ """
1033
+ List issue comments
1034
+
1035
+ You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
1036
+
1037
+ Issue comments are ordered by ascending ID.
1038
+
1039
+ 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)."
1040
+
1041
+ - **`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.
1042
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1043
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1044
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1045
+ """
1046
+ client = self.client
1047
+ if aspects is None:
1048
+ aspects = client.aspects
1049
+
1050
+ header_params = client.headers
1051
+ if headers is not None:
1052
+ header_params = headers
1053
+
1054
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/comments"
1055
+ path_params = {
1056
+ 'owner': owner,
1057
+ 'repo': repo,
1058
+ 'issue_number': issue_number,
1059
+ }
1060
+ call_leaf = leaf_template.format(**path_params)
1061
+
1062
+ query_params = {}
1063
+ if since is not None:
1064
+ query_params['since'] = since
1065
+ if per_page is not None:
1066
+ query_params['per_page'] = per_page
1067
+ if page is not None:
1068
+ query_params['page'] = page
1069
+
1070
+
1071
+ if exp_status is None:
1072
+ exp_status = [200]
1073
+
1074
+ resp = client.perform_call(
1075
+ leaf=call_leaf,
1076
+ method="GET",
1077
+ params=query_params if query_params else None,
1078
+ body=None,
1079
+ exp_status=exp_status,
1080
+ headers=header_params if header_params else None,
1081
+ context_msg=None,
1082
+ aspects=aspects,
1083
+ )
1084
+ raw_data = resp.json()
1085
+ items = [self._parse_item(item, IssueComment) for item in raw_data]
1086
+ rtnval = PagedList[IssueComment](items, dict(resp.headers), raw_data)
1087
+ return rtnval
1088
+
1089
+ def list_comments_for_repo(self, owner: str, repo: str, *, 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[IssueComment]:
1090
+ """
1091
+ List issue comments for a repository
1092
+
1093
+ You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request.
1094
+
1095
+ By default, issue comments are ordered by ascending ID.
1096
+
1097
+ 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)."
1098
+
1099
+ - **`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.
1100
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1101
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1102
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1103
+ """
1104
+ client = self.client
1105
+ if aspects is None:
1106
+ aspects = client.aspects
1107
+
1108
+ header_params = client.headers
1109
+ if headers is not None:
1110
+ header_params = headers
1111
+
1112
+ leaf_template = "/repos/{owner}/{repo}/issues/comments"
1113
+ path_params = {
1114
+ 'owner': owner,
1115
+ 'repo': repo,
1116
+ }
1117
+ call_leaf = leaf_template.format(**path_params)
1118
+
1119
+ query_params = {}
1120
+ if sort is not None:
1121
+ query_params['sort'] = sort
1122
+ if direction is not None:
1123
+ query_params['direction'] = direction
1124
+ if since is not None:
1125
+ query_params['since'] = since
1126
+ if per_page is not None:
1127
+ query_params['per_page'] = per_page
1128
+ if page is not None:
1129
+ query_params['page'] = page
1130
+
1131
+
1132
+ if exp_status is None:
1133
+ exp_status = [200]
1134
+
1135
+ resp = client.perform_call(
1136
+ leaf=call_leaf,
1137
+ method="GET",
1138
+ params=query_params if query_params else None,
1139
+ body=None,
1140
+ exp_status=exp_status,
1141
+ headers=header_params if header_params else None,
1142
+ context_msg=None,
1143
+ aspects=aspects,
1144
+ )
1145
+ raw_data = resp.json()
1146
+ items = [self._parse_item(item, IssueComment) for item in raw_data]
1147
+ rtnval = PagedList[IssueComment](items, dict(resp.headers), raw_data)
1148
+ return rtnval
1149
+
1150
+ def list_dependencies_blocked_by(self, owner: str, repo: str, issue_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[Issue]:
1151
+ """
1152
+ List dependencies an issue is blocked by
1153
+
1154
+ You can use the REST API to list the dependencies an issue is blocked by.
1155
+
1156
+ 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).
1157
+
1158
+ - **`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.
1159
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`.
1160
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`.
1161
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1162
+ """
1163
+ client = self.client
1164
+ if aspects is None:
1165
+ aspects = client.aspects
1166
+
1167
+ header_params = client.headers
1168
+ if headers is not None:
1169
+ header_params = headers
1170
+
1171
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
1172
+ path_params = {
1173
+ 'owner': owner,
1174
+ 'repo': repo,
1175
+ 'issue_number': issue_number,
1176
+ }
1177
+ call_leaf = leaf_template.format(**path_params)
1178
+
1179
+ query_params = {}
1180
+ if per_page is not None:
1181
+ query_params['per_page'] = per_page
1182
+ if page is not None:
1183
+ query_params['page'] = page
1184
+
1185
+
1186
+ if exp_status is None:
1187
+ exp_status = [200]
1188
+
1189
+ resp = client.perform_call(
1190
+ leaf=call_leaf,
1191
+ method="GET",
1192
+ params=query_params if query_params else None,
1193
+ body=None,
1194
+ exp_status=exp_status,
1195
+ headers=header_params if header_params else None,
1196
+ context_msg=None,
1197
+ aspects=aspects,
1198
+ )
1199
+ raw_data = resp.json()
1200
+ items = [self._parse_item(item, Issue) for item in raw_data]
1201
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
1202
+ return rtnval
1203
+
1204
+ def list_dependencies_blocking(self, owner: str, repo: str, issue_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[Issue]:
1205
+ """
1206
+ List dependencies an issue is blocking
1207
+
1208
+ You can use the REST API to list the dependencies an issue is blocking.
1209
+
1210
+ 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).
1211
+
1212
+ - **`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.
1213
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`.
1214
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`.
1215
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1216
+ """
1217
+ client = self.client
1218
+ if aspects is None:
1219
+ aspects = client.aspects
1220
+
1221
+ header_params = client.headers
1222
+ if headers is not None:
1223
+ header_params = headers
1224
+
1225
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"
1226
+ path_params = {
1227
+ 'owner': owner,
1228
+ 'repo': repo,
1229
+ 'issue_number': issue_number,
1230
+ }
1231
+ call_leaf = leaf_template.format(**path_params)
1232
+
1233
+ query_params = {}
1234
+ if per_page is not None:
1235
+ query_params['per_page'] = per_page
1236
+ if page is not None:
1237
+ query_params['page'] = page
1238
+
1239
+
1240
+ if exp_status is None:
1241
+ exp_status = [200]
1242
+
1243
+ resp = client.perform_call(
1244
+ leaf=call_leaf,
1245
+ method="GET",
1246
+ params=query_params if query_params else None,
1247
+ body=None,
1248
+ exp_status=exp_status,
1249
+ headers=header_params if header_params else None,
1250
+ context_msg=None,
1251
+ aspects=aspects,
1252
+ )
1253
+ raw_data = resp.json()
1254
+ items = [self._parse_item(item, Issue) for item in raw_data]
1255
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
1256
+ return rtnval
1257
+
1258
+ def list_events(self, owner: str, repo: str, issue_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[Union[LabeledIssueEvent, UnlabeledIssueEvent, AssignedIssueEvent, UnassignedIssueEvent, MilestonedIssueEvent, DemilestonedIssueEvent, RenamedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, ReviewDismissedIssueEvent, LockedIssueEvent, AddedToProjectIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, ConvertedNoteToIssueIssueEvent]]:
1259
+ """
1260
+ List issue events
1261
+
1262
+ Lists all events for an issue.
1263
+ """
1264
+ client = self.client
1265
+ if aspects is None:
1266
+ aspects = client.aspects
1267
+
1268
+ header_params = client.headers
1269
+ if headers is not None:
1270
+ header_params = headers
1271
+
1272
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/events"
1273
+ path_params = {
1274
+ 'owner': owner,
1275
+ 'repo': repo,
1276
+ 'issue_number': issue_number,
1277
+ }
1278
+ call_leaf = leaf_template.format(**path_params)
1279
+
1280
+ query_params = {}
1281
+ if per_page is not None:
1282
+ query_params['per_page'] = per_page
1283
+ if page is not None:
1284
+ query_params['page'] = page
1285
+
1286
+
1287
+ if exp_status is None:
1288
+ exp_status = [200]
1289
+
1290
+ resp = client.perform_call(
1291
+ leaf=call_leaf,
1292
+ method="GET",
1293
+ params=query_params if query_params else None,
1294
+ body=None,
1295
+ exp_status=exp_status,
1296
+ headers=header_params if header_params else None,
1297
+ context_msg=None,
1298
+ aspects=aspects,
1299
+ )
1300
+ raw_data = resp.json()
1301
+ items = [self._parse_item(item, Union[LabeledIssueEvent, UnlabeledIssueEvent, AssignedIssueEvent, UnassignedIssueEvent, MilestonedIssueEvent, DemilestonedIssueEvent, RenamedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, ReviewDismissedIssueEvent, LockedIssueEvent, AddedToProjectIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, ConvertedNoteToIssueIssueEvent]) for item in raw_data]
1302
+ rtnval = PagedList[Union[LabeledIssueEvent, UnlabeledIssueEvent, AssignedIssueEvent, UnassignedIssueEvent, MilestonedIssueEvent, DemilestonedIssueEvent, RenamedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, ReviewDismissedIssueEvent, LockedIssueEvent, AddedToProjectIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, ConvertedNoteToIssueIssueEvent]](items, dict(resp.headers), raw_data)
1303
+ return rtnval
1304
+
1305
+ def list_events_for_repo(self, owner: str, repo: str, *, 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[IssueEvent]:
1306
+ """
1307
+ List issue events for a repository
1308
+
1309
+ Lists events for a repository.
1310
+ """
1311
+ client = self.client
1312
+ if aspects is None:
1313
+ aspects = client.aspects
1314
+
1315
+ header_params = client.headers
1316
+ if headers is not None:
1317
+ header_params = headers
1318
+
1319
+ leaf_template = "/repos/{owner}/{repo}/issues/events"
1320
+ path_params = {
1321
+ 'owner': owner,
1322
+ 'repo': repo,
1323
+ }
1324
+ call_leaf = leaf_template.format(**path_params)
1325
+
1326
+ query_params = {}
1327
+ if per_page is not None:
1328
+ query_params['per_page'] = per_page
1329
+ if page is not None:
1330
+ query_params['page'] = page
1331
+
1332
+
1333
+ if exp_status is None:
1334
+ exp_status = [200]
1335
+
1336
+ resp = client.perform_call(
1337
+ leaf=call_leaf,
1338
+ method="GET",
1339
+ params=query_params if query_params else None,
1340
+ body=None,
1341
+ exp_status=exp_status,
1342
+ headers=header_params if header_params else None,
1343
+ context_msg=None,
1344
+ aspects=aspects,
1345
+ )
1346
+ raw_data = resp.json()
1347
+ items = [self._parse_item(item, IssueEvent) for item in raw_data]
1348
+ rtnval = PagedList[IssueEvent](items, dict(resp.headers), raw_data)
1349
+ return rtnval
1350
+
1351
+ def list_events_for_timeline(self, owner: str, repo: str, issue_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[Union[LabeledIssueEvent, UnlabeledIssueEvent, MilestonedIssueEvent, DemilestonedIssueEvent, RenamedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, ReviewDismissedIssueEvent, LockedIssueEvent, AddedToProjectIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, ConvertedNoteToIssueIssueEvent, TimelineCommentEvent, TimelineCrossReferencedEvent, TimelineCommittedEvent, TimelineReviewedEvent, TimelineLineCommentedEvent, TimelineCommitCommentedEvent, TimelineAssignedIssueEvent, TimelineUnassignedIssueEvent, StateChangeIssueEvent]]:
1352
+ """
1353
+ List timeline events for an issue
1354
+
1355
+ List all timeline events for an issue.
1356
+ """
1357
+ client = self.client
1358
+ if aspects is None:
1359
+ aspects = client.aspects
1360
+
1361
+ header_params = client.headers
1362
+ if headers is not None:
1363
+ header_params = headers
1364
+
1365
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/timeline"
1366
+ path_params = {
1367
+ 'owner': owner,
1368
+ 'repo': repo,
1369
+ 'issue_number': issue_number,
1370
+ }
1371
+ call_leaf = leaf_template.format(**path_params)
1372
+
1373
+ query_params = {}
1374
+ if per_page is not None:
1375
+ query_params['per_page'] = per_page
1376
+ if page is not None:
1377
+ query_params['page'] = page
1378
+
1379
+
1380
+ if exp_status is None:
1381
+ exp_status = [200]
1382
+
1383
+ resp = client.perform_call(
1384
+ leaf=call_leaf,
1385
+ method="GET",
1386
+ params=query_params if query_params else None,
1387
+ body=None,
1388
+ exp_status=exp_status,
1389
+ headers=header_params if header_params else None,
1390
+ context_msg=None,
1391
+ aspects=aspects,
1392
+ )
1393
+ raw_data = resp.json()
1394
+ items = [self._parse_item(item, Union[LabeledIssueEvent, UnlabeledIssueEvent, MilestonedIssueEvent, DemilestonedIssueEvent, RenamedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, ReviewDismissedIssueEvent, LockedIssueEvent, AddedToProjectIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, ConvertedNoteToIssueIssueEvent, TimelineCommentEvent, TimelineCrossReferencedEvent, TimelineCommittedEvent, TimelineReviewedEvent, TimelineLineCommentedEvent, TimelineCommitCommentedEvent, TimelineAssignedIssueEvent, TimelineUnassignedIssueEvent, StateChangeIssueEvent]) for item in raw_data]
1395
+ rtnval = PagedList[Union[LabeledIssueEvent, UnlabeledIssueEvent, MilestonedIssueEvent, DemilestonedIssueEvent, RenamedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, ReviewDismissedIssueEvent, LockedIssueEvent, AddedToProjectIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, ConvertedNoteToIssueIssueEvent, TimelineCommentEvent, TimelineCrossReferencedEvent, TimelineCommittedEvent, TimelineReviewedEvent, TimelineLineCommentedEvent, TimelineCommitCommentedEvent, TimelineAssignedIssueEvent, TimelineUnassignedIssueEvent, StateChangeIssueEvent]](items, dict(resp.headers), raw_data)
1396
+ return rtnval
1397
+
1398
+ def list_for_authenticated_user(self, *, filter: Optional[str] = "assigned", state: Optional[str] = "open", labels: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", 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[Issue]:
1399
+ """
1400
+ List user account issues assigned to the authenticated user
1401
+
1402
+ List issues across owned and member repositories assigned to the authenticated user.
1403
+
1404
+ > [!NOTE]
1405
+ > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
1406
+
1407
+ 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)."
1408
+
1409
+ - **`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.
1410
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1411
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1412
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1413
+ """
1414
+ client = self.client
1415
+ if aspects is None:
1416
+ aspects = client.aspects
1417
+
1418
+ header_params = client.headers
1419
+ if headers is not None:
1420
+ header_params = headers
1421
+
1422
+ call_leaf = "/user/issues"
1423
+
1424
+ query_params = {}
1425
+ if filter is not None:
1426
+ query_params['filter'] = filter
1427
+ if state is not None:
1428
+ query_params['state'] = state
1429
+ if labels is not None:
1430
+ query_params['labels'] = labels
1431
+ if sort is not None:
1432
+ query_params['sort'] = sort
1433
+ if direction is not None:
1434
+ query_params['direction'] = direction
1435
+ if since is not None:
1436
+ query_params['since'] = since
1437
+ if per_page is not None:
1438
+ query_params['per_page'] = per_page
1439
+ if page is not None:
1440
+ query_params['page'] = page
1441
+
1442
+
1443
+ if exp_status is None:
1444
+ exp_status = [200]
1445
+
1446
+ resp = client.perform_call(
1447
+ leaf=call_leaf,
1448
+ method="GET",
1449
+ params=query_params if query_params else None,
1450
+ body=None,
1451
+ exp_status=exp_status,
1452
+ headers=header_params if header_params else None,
1453
+ context_msg=None,
1454
+ aspects=aspects,
1455
+ )
1456
+ raw_data = resp.json()
1457
+ items = [self._parse_item(item, Issue) for item in raw_data]
1458
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
1459
+ return rtnval
1460
+
1461
+ def list_for_org(self, org: str, *, filter: Optional[str] = "assigned", state: Optional[str] = "open", labels: Optional[str] = None, type: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", 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[Issue]:
1462
+ """
1463
+ List organization issues assigned to the authenticated user
1464
+
1465
+ List issues in an organization assigned to the authenticated user.
1466
+
1467
+ > [!NOTE]
1468
+ > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
1469
+
1470
+ 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)."
1471
+
1472
+ - **`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.
1473
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1474
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1475
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1476
+ """
1477
+ client = self.client
1478
+ if aspects is None:
1479
+ aspects = client.aspects
1480
+
1481
+ header_params = client.headers
1482
+ if headers is not None:
1483
+ header_params = headers
1484
+
1485
+ leaf_template = "/orgs/{org}/issues"
1486
+ path_params = {
1487
+ 'org': org,
1488
+ }
1489
+ call_leaf = leaf_template.format(**path_params)
1490
+
1491
+ query_params = {}
1492
+ if filter is not None:
1493
+ query_params['filter'] = filter
1494
+ if state is not None:
1495
+ query_params['state'] = state
1496
+ if labels is not None:
1497
+ query_params['labels'] = labels
1498
+ if type is not None:
1499
+ query_params['type'] = type
1500
+ if sort is not None:
1501
+ query_params['sort'] = sort
1502
+ if direction is not None:
1503
+ query_params['direction'] = direction
1504
+ if since is not None:
1505
+ query_params['since'] = since
1506
+ if per_page is not None:
1507
+ query_params['per_page'] = per_page
1508
+ if page is not None:
1509
+ query_params['page'] = page
1510
+
1511
+
1512
+ if exp_status is None:
1513
+ exp_status = [200]
1514
+
1515
+ resp = client.perform_call(
1516
+ leaf=call_leaf,
1517
+ method="GET",
1518
+ params=query_params if query_params else None,
1519
+ body=None,
1520
+ exp_status=exp_status,
1521
+ headers=header_params if header_params else None,
1522
+ context_msg=None,
1523
+ aspects=aspects,
1524
+ )
1525
+ raw_data = resp.json()
1526
+ items = [self._parse_item(item, Issue) for item in raw_data]
1527
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
1528
+ return rtnval
1529
+
1530
+ def list_for_repo(self, owner: str, repo: str, *, milestone: Optional[str] = None, state: Optional[str] = "open", assignee: Optional[str] = None, type: Optional[str] = None, creator: Optional[str] = None, mentioned: Optional[str] = None, labels: Optional[str] = None, sort: Optional[str] = "created", direction: Optional[str] = "desc", 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[Issue]:
1531
+ """
1532
+ List repository issues
1533
+
1534
+ List issues in a repository. Only open issues will be listed.
1535
+
1536
+ > [!NOTE]
1537
+ > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
1538
+
1539
+ 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)."
1540
+
1541
+ - **`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.
1542
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
1543
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
1544
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1545
+ """
1546
+ client = self.client
1547
+ if aspects is None:
1548
+ aspects = client.aspects
1549
+
1550
+ header_params = client.headers
1551
+ if headers is not None:
1552
+ header_params = headers
1553
+
1554
+ leaf_template = "/repos/{owner}/{repo}/issues"
1555
+ path_params = {
1556
+ 'owner': owner,
1557
+ 'repo': repo,
1558
+ }
1559
+ call_leaf = leaf_template.format(**path_params)
1560
+
1561
+ query_params = {}
1562
+ if milestone is not None:
1563
+ query_params['milestone'] = milestone
1564
+ if state is not None:
1565
+ query_params['state'] = state
1566
+ if assignee is not None:
1567
+ query_params['assignee'] = assignee
1568
+ if type is not None:
1569
+ query_params['type'] = type
1570
+ if creator is not None:
1571
+ query_params['creator'] = creator
1572
+ if mentioned is not None:
1573
+ query_params['mentioned'] = mentioned
1574
+ if labels is not None:
1575
+ query_params['labels'] = labels
1576
+ if sort is not None:
1577
+ query_params['sort'] = sort
1578
+ if direction is not None:
1579
+ query_params['direction'] = direction
1580
+ if since is not None:
1581
+ query_params['since'] = since
1582
+ if per_page is not None:
1583
+ query_params['per_page'] = per_page
1584
+ if page is not None:
1585
+ query_params['page'] = page
1586
+
1587
+
1588
+ if exp_status is None:
1589
+ exp_status = [200]
1590
+
1591
+ resp = client.perform_call(
1592
+ leaf=call_leaf,
1593
+ method="GET",
1594
+ params=query_params if query_params else None,
1595
+ body=None,
1596
+ exp_status=exp_status,
1597
+ headers=header_params if header_params else None,
1598
+ context_msg=None,
1599
+ aspects=aspects,
1600
+ )
1601
+ raw_data = resp.json()
1602
+ items = [self._parse_item(item, Issue) for item in raw_data]
1603
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
1604
+ return rtnval
1605
+
1606
+ def list_labels_for_milestone(self, owner: str, repo: str, milestone_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[Label]:
1607
+ """
1608
+ List labels for issues in a milestone
1609
+
1610
+ Lists labels for issues in a milestone.
1611
+ """
1612
+ client = self.client
1613
+ if aspects is None:
1614
+ aspects = client.aspects
1615
+
1616
+ header_params = client.headers
1617
+ if headers is not None:
1618
+ header_params = headers
1619
+
1620
+ leaf_template = "/repos/{owner}/{repo}/milestones/{milestone_number}/labels"
1621
+ path_params = {
1622
+ 'owner': owner,
1623
+ 'repo': repo,
1624
+ 'milestone_number': milestone_number,
1625
+ }
1626
+ call_leaf = leaf_template.format(**path_params)
1627
+
1628
+ query_params = {}
1629
+ if per_page is not None:
1630
+ query_params['per_page'] = per_page
1631
+ if page is not None:
1632
+ query_params['page'] = page
1633
+
1634
+
1635
+ if exp_status is None:
1636
+ exp_status = [200]
1637
+
1638
+ resp = client.perform_call(
1639
+ leaf=call_leaf,
1640
+ method="GET",
1641
+ params=query_params if query_params else None,
1642
+ body=None,
1643
+ exp_status=exp_status,
1644
+ headers=header_params if header_params else None,
1645
+ context_msg=None,
1646
+ aspects=aspects,
1647
+ )
1648
+ raw_data = resp.json()
1649
+ items = [self._parse_item(item, Label) for item in raw_data]
1650
+ rtnval = PagedList[Label](items, dict(resp.headers), raw_data)
1651
+ return rtnval
1652
+
1653
+ def list_labels_for_repo(self, owner: str, repo: str, *, 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[Label]:
1654
+ """
1655
+ List labels for a repository
1656
+
1657
+ Lists all labels for a repository.
1658
+ """
1659
+ client = self.client
1660
+ if aspects is None:
1661
+ aspects = client.aspects
1662
+
1663
+ header_params = client.headers
1664
+ if headers is not None:
1665
+ header_params = headers
1666
+
1667
+ leaf_template = "/repos/{owner}/{repo}/labels"
1668
+ path_params = {
1669
+ 'owner': owner,
1670
+ 'repo': repo,
1671
+ }
1672
+ call_leaf = leaf_template.format(**path_params)
1673
+
1674
+ query_params = {}
1675
+ if per_page is not None:
1676
+ query_params['per_page'] = per_page
1677
+ if page is not None:
1678
+ query_params['page'] = page
1679
+
1680
+
1681
+ if exp_status is None:
1682
+ exp_status = [200]
1683
+
1684
+ resp = client.perform_call(
1685
+ leaf=call_leaf,
1686
+ method="GET",
1687
+ params=query_params if query_params else None,
1688
+ body=None,
1689
+ exp_status=exp_status,
1690
+ headers=header_params if header_params else None,
1691
+ context_msg=None,
1692
+ aspects=aspects,
1693
+ )
1694
+ raw_data = resp.json()
1695
+ items = [self._parse_item(item, Label) for item in raw_data]
1696
+ rtnval = PagedList[Label](items, dict(resp.headers), raw_data)
1697
+ return rtnval
1698
+
1699
+ def list_labels_on_issue(self, owner: str, repo: str, issue_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[Label]:
1700
+ """
1701
+ List labels for an issue
1702
+
1703
+ Lists all labels for an issue.
1704
+ """
1705
+ client = self.client
1706
+ if aspects is None:
1707
+ aspects = client.aspects
1708
+
1709
+ header_params = client.headers
1710
+ if headers is not None:
1711
+ header_params = headers
1712
+
1713
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/labels"
1714
+ path_params = {
1715
+ 'owner': owner,
1716
+ 'repo': repo,
1717
+ 'issue_number': issue_number,
1718
+ }
1719
+ call_leaf = leaf_template.format(**path_params)
1720
+
1721
+ query_params = {}
1722
+ if per_page is not None:
1723
+ query_params['per_page'] = per_page
1724
+ if page is not None:
1725
+ query_params['page'] = page
1726
+
1727
+
1728
+ if exp_status is None:
1729
+ exp_status = [200]
1730
+
1731
+ resp = client.perform_call(
1732
+ leaf=call_leaf,
1733
+ method="GET",
1734
+ params=query_params if query_params else None,
1735
+ body=None,
1736
+ exp_status=exp_status,
1737
+ headers=header_params if header_params else None,
1738
+ context_msg=None,
1739
+ aspects=aspects,
1740
+ )
1741
+ raw_data = resp.json()
1742
+ items = [self._parse_item(item, Label) for item in raw_data]
1743
+ rtnval = PagedList[Label](items, dict(resp.headers), raw_data)
1744
+ return rtnval
1745
+
1746
+ def list_milestones(self, owner: str, repo: str, *, state: Optional[str] = "open", sort: Optional[str] = "due_on", direction: Optional[str] = "asc", 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[Milestone]:
1747
+ """
1748
+ List milestones
1749
+
1750
+ Lists milestones for a repository.
1751
+ """
1752
+ client = self.client
1753
+ if aspects is None:
1754
+ aspects = client.aspects
1755
+
1756
+ header_params = client.headers
1757
+ if headers is not None:
1758
+ header_params = headers
1759
+
1760
+ leaf_template = "/repos/{owner}/{repo}/milestones"
1761
+ path_params = {
1762
+ 'owner': owner,
1763
+ 'repo': repo,
1764
+ }
1765
+ call_leaf = leaf_template.format(**path_params)
1766
+
1767
+ query_params = {}
1768
+ if state is not None:
1769
+ query_params['state'] = state
1770
+ if sort is not None:
1771
+ query_params['sort'] = sort
1772
+ if direction is not None:
1773
+ query_params['direction'] = direction
1774
+ if per_page is not None:
1775
+ query_params['per_page'] = per_page
1776
+ if page is not None:
1777
+ query_params['page'] = page
1778
+
1779
+
1780
+ if exp_status is None:
1781
+ exp_status = [200]
1782
+
1783
+ resp = client.perform_call(
1784
+ leaf=call_leaf,
1785
+ method="GET",
1786
+ params=query_params if query_params else None,
1787
+ body=None,
1788
+ exp_status=exp_status,
1789
+ headers=header_params if header_params else None,
1790
+ context_msg=None,
1791
+ aspects=aspects,
1792
+ )
1793
+ raw_data = resp.json()
1794
+ items = [self._parse_item(item, Milestone) for item in raw_data]
1795
+ rtnval = PagedList[Milestone](items, dict(resp.headers), raw_data)
1796
+ return rtnval
1797
+
1798
+ def list_sub_issues(self, owner: str, repo: str, issue_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[Issue]:
1799
+ """
1800
+ List sub-issues
1801
+
1802
+ You can use the REST API to list the sub-issues on an issue.
1803
+
1804
+ 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).
1805
+
1806
+ - **`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.
1807
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`.
1808
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`.
1809
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
1810
+ """
1811
+ client = self.client
1812
+ if aspects is None:
1813
+ aspects = client.aspects
1814
+
1815
+ header_params = client.headers
1816
+ if headers is not None:
1817
+ header_params = headers
1818
+
1819
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
1820
+ path_params = {
1821
+ 'owner': owner,
1822
+ 'repo': repo,
1823
+ 'issue_number': issue_number,
1824
+ }
1825
+ call_leaf = leaf_template.format(**path_params)
1826
+
1827
+ query_params = {}
1828
+ if per_page is not None:
1829
+ query_params['per_page'] = per_page
1830
+ if page is not None:
1831
+ query_params['page'] = page
1832
+
1833
+
1834
+ if exp_status is None:
1835
+ exp_status = [200]
1836
+
1837
+ resp = client.perform_call(
1838
+ leaf=call_leaf,
1839
+ method="GET",
1840
+ params=query_params if query_params else None,
1841
+ body=None,
1842
+ exp_status=exp_status,
1843
+ headers=header_params if header_params else None,
1844
+ context_msg=None,
1845
+ aspects=aspects,
1846
+ )
1847
+ raw_data = resp.json()
1848
+ items = [self._parse_item(item, Issue) for item in raw_data]
1849
+ rtnval = PagedList[Issue](items, dict(resp.headers), raw_data)
1850
+ return rtnval
1851
+
1852
+ def lock(self, owner: str, repo: str, issue_number: int, body: Optional[Dict[str, Any]], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1853
+ """
1854
+ Lock an issue
1855
+
1856
+ Users with push access can lock an issue or pull request's conversation.
1857
+
1858
+ Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
1859
+ """
1860
+ client = self.client
1861
+ if aspects is None:
1862
+ aspects = client.aspects
1863
+
1864
+ header_params = client.headers
1865
+ if headers is not None:
1866
+ header_params = headers
1867
+
1868
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/lock"
1869
+ path_params = {
1870
+ 'owner': owner,
1871
+ 'repo': repo,
1872
+ 'issue_number': issue_number,
1873
+ }
1874
+ call_leaf = leaf_template.format(**path_params)
1875
+
1876
+ query_params = None
1877
+
1878
+
1879
+ if exp_status is None:
1880
+ exp_status = [204]
1881
+
1882
+ resp = client.perform_call(
1883
+ leaf=call_leaf,
1884
+ method="PUT",
1885
+ params=query_params if query_params else None,
1886
+ body=body,
1887
+ exp_status=exp_status,
1888
+ headers=header_params if header_params else None,
1889
+ context_msg=None,
1890
+ aspects=aspects,
1891
+ )
1892
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1893
+ rtnval = None
1894
+ else:
1895
+ rtnval = resp.json()
1896
+ return rtnval
1897
+
1898
+ def remove_all_labels(self, owner: str, repo: str, issue_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1899
+ """
1900
+ Remove all labels from an issue
1901
+
1902
+ Removes all labels from an issue.
1903
+ """
1904
+ client = self.client
1905
+ if aspects is None:
1906
+ aspects = client.aspects
1907
+
1908
+ header_params = client.headers
1909
+ if headers is not None:
1910
+ header_params = headers
1911
+
1912
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/labels"
1913
+ path_params = {
1914
+ 'owner': owner,
1915
+ 'repo': repo,
1916
+ 'issue_number': issue_number,
1917
+ }
1918
+ call_leaf = leaf_template.format(**path_params)
1919
+
1920
+ query_params = None
1921
+
1922
+
1923
+ if exp_status is None:
1924
+ exp_status = [204]
1925
+
1926
+ resp = client.perform_call(
1927
+ leaf=call_leaf,
1928
+ method="DELETE",
1929
+ params=query_params if query_params else None,
1930
+ body=None,
1931
+ exp_status=exp_status,
1932
+ headers=header_params if header_params else None,
1933
+ context_msg=None,
1934
+ aspects=aspects,
1935
+ )
1936
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1937
+ rtnval = None
1938
+ else:
1939
+ rtnval = resp.json()
1940
+ return rtnval
1941
+
1942
+ def remove_assignees(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Issue:
1943
+ """
1944
+ Remove assignees from an issue
1945
+
1946
+ Removes one or more assignees from an issue.
1947
+ """
1948
+ client = self.client
1949
+ if aspects is None:
1950
+ aspects = client.aspects
1951
+
1952
+ header_params = client.headers
1953
+ if headers is not None:
1954
+ header_params = headers
1955
+
1956
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/assignees"
1957
+ path_params = {
1958
+ 'owner': owner,
1959
+ 'repo': repo,
1960
+ 'issue_number': issue_number,
1961
+ }
1962
+ call_leaf = leaf_template.format(**path_params)
1963
+
1964
+ query_params = None
1965
+
1966
+
1967
+ if exp_status is None:
1968
+ exp_status = [200]
1969
+
1970
+ resp = client.perform_call(
1971
+ leaf=call_leaf,
1972
+ method="DELETE",
1973
+ params=query_params if query_params else None,
1974
+ body=body,
1975
+ exp_status=exp_status,
1976
+ headers=header_params if header_params else None,
1977
+ context_msg=None,
1978
+ aspects=aspects,
1979
+ )
1980
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1981
+ rtnobj = None
1982
+ else:
1983
+ raw_data = resp.json()
1984
+ rtnobj = Issue.from_dict(raw_data)
1985
+ return rtnobj
1986
+
1987
+ def remove_dependency_blocked_by(self, owner: str, repo: str, issue_number: int, issue_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Issue:
1988
+ """
1989
+ Remove dependency an issue is blocked by
1990
+
1991
+ You can use the REST API to remove a dependency that an issue is blocked by.
1992
+
1993
+ Removing content too quickly using this endpoint may result in secondary rate limiting.
1994
+ 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)
1995
+ and [Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).
1996
+
1997
+ 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).
1998
+ - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass a specific media type.
1999
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`.
2000
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`.
2001
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
2002
+ """
2003
+ client = self.client
2004
+ if aspects is None:
2005
+ aspects = client.aspects
2006
+
2007
+ header_params = client.headers
2008
+ if headers is not None:
2009
+ header_params = headers
2010
+
2011
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"
2012
+ path_params = {
2013
+ 'owner': owner,
2014
+ 'repo': repo,
2015
+ 'issue_number': issue_number,
2016
+ 'issue_id': issue_id,
2017
+ }
2018
+ call_leaf = leaf_template.format(**path_params)
2019
+
2020
+ query_params = None
2021
+
2022
+
2023
+ if exp_status is None:
2024
+ exp_status = [200]
2025
+
2026
+ resp = client.perform_call(
2027
+ leaf=call_leaf,
2028
+ method="DELETE",
2029
+ params=query_params if query_params else None,
2030
+ body=None,
2031
+ exp_status=exp_status,
2032
+ headers=header_params if header_params else None,
2033
+ context_msg=None,
2034
+ aspects=aspects,
2035
+ )
2036
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2037
+ rtnobj = None
2038
+ else:
2039
+ raw_data = resp.json()
2040
+ rtnobj = Issue.from_dict(raw_data)
2041
+ return rtnobj
2042
+
2043
+ def remove_label(self, owner: str, repo: str, issue_number: int, name: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[Label]:
2044
+ """
2045
+ Remove a label from an issue
2046
+
2047
+ Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist.
2048
+ """
2049
+ client = self.client
2050
+ if aspects is None:
2051
+ aspects = client.aspects
2052
+
2053
+ header_params = client.headers
2054
+ if headers is not None:
2055
+ header_params = headers
2056
+
2057
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
2058
+ path_params = {
2059
+ 'owner': owner,
2060
+ 'repo': repo,
2061
+ 'issue_number': issue_number,
2062
+ 'name': name,
2063
+ }
2064
+ call_leaf = leaf_template.format(**path_params)
2065
+
2066
+ query_params = None
2067
+
2068
+
2069
+ if exp_status is None:
2070
+ exp_status = [200]
2071
+
2072
+ resp = client.perform_call(
2073
+ leaf=call_leaf,
2074
+ method="DELETE",
2075
+ params=query_params if query_params else None,
2076
+ body=None,
2077
+ exp_status=exp_status,
2078
+ headers=header_params if header_params else None,
2079
+ context_msg=None,
2080
+ aspects=aspects,
2081
+ )
2082
+ raw_data = resp.json()
2083
+ items = [self._parse_item(item, Label) for item in raw_data]
2084
+ return items
2085
+
2086
+ def remove_sub_issue(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Issue:
2087
+ """
2088
+ Remove sub-issue
2089
+
2090
+ You can use the REST API to remove a sub-issue from an issue.
2091
+ Removing content too quickly using this endpoint may result in secondary rate limiting.
2092
+ 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)"
2093
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
2094
+ 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)."
2095
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass a specific media type.
2096
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
2097
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
2098
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
2099
+ """
2100
+ client = self.client
2101
+ if aspects is None:
2102
+ aspects = client.aspects
2103
+
2104
+ header_params = client.headers
2105
+ if headers is not None:
2106
+ header_params = headers
2107
+
2108
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/sub_issue"
2109
+ path_params = {
2110
+ 'owner': owner,
2111
+ 'repo': repo,
2112
+ 'issue_number': issue_number,
2113
+ }
2114
+ call_leaf = leaf_template.format(**path_params)
2115
+
2116
+ query_params = None
2117
+
2118
+
2119
+ if exp_status is None:
2120
+ exp_status = [200]
2121
+
2122
+ resp = client.perform_call(
2123
+ leaf=call_leaf,
2124
+ method="DELETE",
2125
+ params=query_params if query_params else None,
2126
+ body=body,
2127
+ exp_status=exp_status,
2128
+ headers=header_params if header_params else None,
2129
+ context_msg=None,
2130
+ aspects=aspects,
2131
+ )
2132
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2133
+ rtnobj = None
2134
+ else:
2135
+ raw_data = resp.json()
2136
+ rtnobj = Issue.from_dict(raw_data)
2137
+ return rtnobj
2138
+
2139
+ def reprioritize_sub_issue(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Issue:
2140
+ """
2141
+ Reprioritize sub-issue
2142
+
2143
+ You can use the REST API to reprioritize a sub-issue to a different position in the parent list.
2144
+ """
2145
+ client = self.client
2146
+ if aspects is None:
2147
+ aspects = client.aspects
2148
+
2149
+ header_params = client.headers
2150
+ if headers is not None:
2151
+ header_params = headers
2152
+
2153
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"
2154
+ path_params = {
2155
+ 'owner': owner,
2156
+ 'repo': repo,
2157
+ 'issue_number': issue_number,
2158
+ }
2159
+ call_leaf = leaf_template.format(**path_params)
2160
+
2161
+ query_params = None
2162
+
2163
+
2164
+ if exp_status is None:
2165
+ exp_status = [200]
2166
+
2167
+ resp = client.perform_call(
2168
+ leaf=call_leaf,
2169
+ method="PATCH",
2170
+ params=query_params if query_params else None,
2171
+ body=body,
2172
+ exp_status=exp_status,
2173
+ headers=header_params if header_params else None,
2174
+ context_msg=None,
2175
+ aspects=aspects,
2176
+ )
2177
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2178
+ rtnobj = None
2179
+ else:
2180
+ raw_data = resp.json()
2181
+ rtnobj = Issue.from_dict(raw_data)
2182
+ return rtnobj
2183
+
2184
+ def set_labels(self, owner: str, repo: str, issue_number: int, body: Union[Dict[str, Any], List[str], Dict[str, Any], List[Dict[str, Any]], str], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> List[Label]:
2185
+ """
2186
+ Set labels for an issue
2187
+
2188
+ Removes any previous labels and sets the new labels for an issue.
2189
+ """
2190
+ client = self.client
2191
+ if aspects is None:
2192
+ aspects = client.aspects
2193
+
2194
+ header_params = client.headers
2195
+ if headers is not None:
2196
+ header_params = headers
2197
+
2198
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/labels"
2199
+ path_params = {
2200
+ 'owner': owner,
2201
+ 'repo': repo,
2202
+ 'issue_number': issue_number,
2203
+ }
2204
+ call_leaf = leaf_template.format(**path_params)
2205
+
2206
+ query_params = None
2207
+
2208
+
2209
+ if exp_status is None:
2210
+ exp_status = [200]
2211
+
2212
+ resp = client.perform_call(
2213
+ leaf=call_leaf,
2214
+ method="PUT",
2215
+ params=query_params if query_params else None,
2216
+ body=body,
2217
+ exp_status=exp_status,
2218
+ headers=header_params if header_params else None,
2219
+ context_msg=None,
2220
+ aspects=aspects,
2221
+ )
2222
+ raw_data = resp.json()
2223
+ items = [self._parse_item(item, Label) for item in raw_data]
2224
+ return items
2225
+
2226
+ def unlock(self, owner: str, repo: str, issue_number: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
2227
+ """
2228
+ Unlock an issue
2229
+
2230
+ Users with push access can unlock an issue's conversation.
2231
+ """
2232
+ client = self.client
2233
+ if aspects is None:
2234
+ aspects = client.aspects
2235
+
2236
+ header_params = client.headers
2237
+ if headers is not None:
2238
+ header_params = headers
2239
+
2240
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}/lock"
2241
+ path_params = {
2242
+ 'owner': owner,
2243
+ 'repo': repo,
2244
+ 'issue_number': issue_number,
2245
+ }
2246
+ call_leaf = leaf_template.format(**path_params)
2247
+
2248
+ query_params = None
2249
+
2250
+
2251
+ if exp_status is None:
2252
+ exp_status = [204]
2253
+
2254
+ resp = client.perform_call(
2255
+ leaf=call_leaf,
2256
+ method="DELETE",
2257
+ params=query_params if query_params else None,
2258
+ body=None,
2259
+ exp_status=exp_status,
2260
+ headers=header_params if header_params else None,
2261
+ context_msg=None,
2262
+ aspects=aspects,
2263
+ )
2264
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2265
+ rtnval = None
2266
+ else:
2267
+ rtnval = resp.json()
2268
+ return rtnval
2269
+
2270
+ def update(self, owner: str, repo: str, issue_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Issue:
2271
+ """
2272
+ Update an issue
2273
+
2274
+ Issue owners and users with push access or Triage role can edit an issue.
2275
+
2276
+ 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)."
2277
+
2278
+ - **`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.
2279
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
2280
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
2281
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
2282
+ """
2283
+ client = self.client
2284
+ if aspects is None:
2285
+ aspects = client.aspects
2286
+
2287
+ header_params = client.headers
2288
+ if headers is not None:
2289
+ header_params = headers
2290
+
2291
+ leaf_template = "/repos/{owner}/{repo}/issues/{issue_number}"
2292
+ path_params = {
2293
+ 'owner': owner,
2294
+ 'repo': repo,
2295
+ 'issue_number': issue_number,
2296
+ }
2297
+ call_leaf = leaf_template.format(**path_params)
2298
+
2299
+ query_params = None
2300
+
2301
+
2302
+ if exp_status is None:
2303
+ exp_status = [200]
2304
+
2305
+ resp = client.perform_call(
2306
+ leaf=call_leaf,
2307
+ method="PATCH",
2308
+ params=query_params if query_params else None,
2309
+ body=body,
2310
+ exp_status=exp_status,
2311
+ headers=header_params if header_params else None,
2312
+ context_msg=None,
2313
+ aspects=aspects,
2314
+ )
2315
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2316
+ rtnobj = None
2317
+ else:
2318
+ raw_data = resp.json()
2319
+ rtnobj = Issue.from_dict(raw_data)
2320
+ return rtnobj
2321
+
2322
+ def update_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) -> IssueComment:
2323
+ """
2324
+ Update an issue comment
2325
+
2326
+ You can use the REST API to update comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
2327
+
2328
+ 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)."
2329
+
2330
+ - **`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.
2331
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
2332
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
2333
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
2334
+ """
2335
+ client = self.client
2336
+ if aspects is None:
2337
+ aspects = client.aspects
2338
+
2339
+ header_params = client.headers
2340
+ if headers is not None:
2341
+ header_params = headers
2342
+
2343
+ leaf_template = "/repos/{owner}/{repo}/issues/comments/{comment_id}"
2344
+ path_params = {
2345
+ 'owner': owner,
2346
+ 'repo': repo,
2347
+ 'comment_id': comment_id,
2348
+ }
2349
+ call_leaf = leaf_template.format(**path_params)
2350
+
2351
+ query_params = None
2352
+
2353
+
2354
+ if exp_status is None:
2355
+ exp_status = [200]
2356
+
2357
+ resp = client.perform_call(
2358
+ leaf=call_leaf,
2359
+ method="PATCH",
2360
+ params=query_params if query_params else None,
2361
+ body=body,
2362
+ exp_status=exp_status,
2363
+ headers=header_params if header_params else None,
2364
+ context_msg=None,
2365
+ aspects=aspects,
2366
+ )
2367
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2368
+ rtnobj = None
2369
+ else:
2370
+ raw_data = resp.json()
2371
+ rtnobj = IssueComment.from_dict(raw_data)
2372
+ return rtnobj
2373
+
2374
+ def update_label(self, owner: str, repo: str, name: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Label:
2375
+ """
2376
+ Update a label
2377
+
2378
+ Updates a label using the given label name.
2379
+ """
2380
+ client = self.client
2381
+ if aspects is None:
2382
+ aspects = client.aspects
2383
+
2384
+ header_params = client.headers
2385
+ if headers is not None:
2386
+ header_params = headers
2387
+
2388
+ leaf_template = "/repos/{owner}/{repo}/labels/{name}"
2389
+ path_params = {
2390
+ 'owner': owner,
2391
+ 'repo': repo,
2392
+ 'name': name,
2393
+ }
2394
+ call_leaf = leaf_template.format(**path_params)
2395
+
2396
+ query_params = None
2397
+
2398
+
2399
+ if exp_status is None:
2400
+ exp_status = [200]
2401
+
2402
+ resp = client.perform_call(
2403
+ leaf=call_leaf,
2404
+ method="PATCH",
2405
+ params=query_params if query_params else None,
2406
+ body=body,
2407
+ exp_status=exp_status,
2408
+ headers=header_params if header_params else None,
2409
+ context_msg=None,
2410
+ aspects=aspects,
2411
+ )
2412
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2413
+ rtnobj = None
2414
+ else:
2415
+ raw_data = resp.json()
2416
+ rtnobj = Label.from_dict(raw_data)
2417
+ return rtnobj
2418
+
2419
+ def update_milestone(self, owner: str, repo: str, milestone_number: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Milestone:
2420
+ """
2421
+ Update a milestone
2422
+ """
2423
+ client = self.client
2424
+ if aspects is None:
2425
+ aspects = client.aspects
2426
+
2427
+ header_params = client.headers
2428
+ if headers is not None:
2429
+ header_params = headers
2430
+
2431
+ leaf_template = "/repos/{owner}/{repo}/milestones/{milestone_number}"
2432
+ path_params = {
2433
+ 'owner': owner,
2434
+ 'repo': repo,
2435
+ 'milestone_number': milestone_number,
2436
+ }
2437
+ call_leaf = leaf_template.format(**path_params)
2438
+
2439
+ query_params = None
2440
+
2441
+
2442
+ if exp_status is None:
2443
+ exp_status = [200]
2444
+
2445
+ resp = client.perform_call(
2446
+ leaf=call_leaf,
2447
+ method="PATCH",
2448
+ params=query_params if query_params else None,
2449
+ body=body,
2450
+ exp_status=exp_status,
2451
+ headers=header_params if header_params else None,
2452
+ context_msg=None,
2453
+ aspects=aspects,
2454
+ )
2455
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
2456
+ rtnobj = None
2457
+ else:
2458
+ raw_data = resp.json()
2459
+ rtnobj = Milestone.from_dict(raw_data)
2460
+ return rtnobj