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

Method disable

github/Workflow.py:231–237  ·  view source on GitHub ↗

:calls: `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable `_ :rtype: bool

(self)

Source from the content-addressed store, hash-verified

229 )
230
231 def disable(self) -> bool:
232 """
233 :calls: `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable <https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#disable-a-workflow>`_
234 :rtype: bool
235 """
236 status, _, _ = self._requester.requestJson("PUT", f"{self.url}/disable")
237 return status == 204
238
239 def enable(self) -> bool:
240 """

Callers 2

testDisableMethod · 0.80

Calls 1

requestJsonMethod · 0.80

Tested by

no test coverage detected