MCPcopy
hub / github.com/PyGithub/PyGithub / jobs

Method jobs

github/WorkflowRun.py:362–377  ·  view source on GitHub ↗

:calls "`GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs `_ :param _filter: string `latest`, or `all`

(self, _filter: Opt[str] = NotSet)

Source from the content-addressed store, hash-verified

360 return status == 204
361
362 def jobs(self, _filter: Opt[str] = NotSet) -> PaginatedList[WorkflowJob]:
363 """
364 :calls "`GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs <https://docs.github.com/en/rest/reference/actions#list-jobs-for-a-workflow-run>`_
365 :param _filter: string `latest`, or `all`
366 """
367 assert is_optional(_filter, str), _filter
368
369 url_parameters = NotSet.remove_unset_items({"filter": _filter})
370
371 return PaginatedList(
372 github.WorkflowJob.WorkflowJob,
373 self._requester,
374 self.jobs_url,
375 url_parameters,
376 list_item="jobs",
377 )
378
379 def _useAttributes(self, attributes: dict[str, Any]) -> None:
380 if "actor" in attributes: # pragma no branch

Callers 2

test_jobsMethod · 0.80
setUpMethod · 0.80

Calls 3

is_optionalFunction · 0.90
PaginatedListClass · 0.90
remove_unset_itemsMethod · 0.80

Tested by 1

test_jobsMethod · 0.64