:calls: `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel `_
(self)
| 325 | ) |
| 326 | |
| 327 | def cancel(self) -> bool: |
| 328 | """ |
| 329 | :calls: `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel <https://docs.github.com/en/rest/reference/actions#workflow-runs>`_ |
| 330 | """ |
| 331 | status, _, _ = self._requester.requestJson("POST", self.cancel_url) |
| 332 | return status == 202 |
| 333 | |
| 334 | def rerun(self) -> bool: |
| 335 | """ |