:calls: `GET /repos/{owner}/{repo}/deployments/{deployment_id} `_ :param: id: int :rtype: :class:`github.Deployment.Deployment`
(self, id_: int)
| 2520 | ) |
| 2521 | |
| 2522 | def get_deployment(self, id_: int) -> Deployment: |
| 2523 | """ |
| 2524 | :calls: `GET /repos/{owner}/{repo}/deployments/{deployment_id} <https://docs.github.com/en/rest/reference/repos#deployments>`_ |
| 2525 | :param: id: int |
| 2526 | :rtype: :class:`github.Deployment.Deployment` |
| 2527 | """ |
| 2528 | assert isinstance(id_, int), id_ |
| 2529 | url = f"{self.url}/deployments/{id_}" |
| 2530 | return github.Deployment.Deployment(self._requester, url=url, accept=Consts.deploymentEnhancementsPreview) |
| 2531 | |
| 2532 | def create_deployment( |
| 2533 | self, |
no outgoing calls
no test coverage detected