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

Method enable

github/Workflow.py:239–245  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

237 return status == 204
238
239 def enable(self) -> bool:
240 """
241 :calls: `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable <https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow>`_
242 :rtype: bool
243 """
244 status, _, _ = self._requester.requestJson("PUT", f"{self.url}/enable")
245 return status == 204
246
247 def _useAttributes(self, attributes: dict[str, Any]) -> None:
248 if "badge_url" in attributes: # pragma no branch

Callers 2

testEnableMethod · 0.80

Calls 1

requestJsonMethod · 0.80

Tested by

no test coverage detected