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

Method get_workflow

github/Repository.py:3729–3738  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id} `_ :param id_or_file_name: int or string. Can be either a workflow ID or a filename. :rtype: :class:`github.Workflow.Workflow`

(self, id_or_file_name: str | int)

Source from the content-addressed store, hash-verified

3727 )
3728
3729 def get_workflow(self, id_or_file_name: str | int) -> Workflow:
3730 """
3731 :calls: `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id} <https://docs.github.com/en/rest/reference/actions#workflows>`_
3732 :param id_or_file_name: int or string. Can be either a workflow ID or a filename.
3733 :rtype: :class:`github.Workflow.Workflow`
3734 """
3735 assert isinstance(id_or_file_name, (int, str)), id_or_file_name
3736 id_or_file_name = urllib.parse.quote(str(id_or_file_name), safe="")
3737 url = f"{self.url}/actions/workflows/{id_or_file_name}"
3738 return github.Workflow.Workflow(self._requester, url=url)
3739
3740 def get_workflow_runs(
3741 self,

Callers 12

setUpMethod · 0.80
testLazyAttributesMethod · 0.80
testDisableMethod · 0.80
testEnableMethod · 0.80
testGetWorkflowIdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected