MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / cancel

Method cancel

github/WorkflowRun.py:327–332  ·  view source on GitHub ↗

:calls: `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel `_

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 2

test_cancelMethod · 0.45
testCancelMethod · 0.45

Calls 1

requestJsonMethod · 0.80

Tested by 1

test_cancelMethod · 0.36