How can I get the full Job graph of a Workflow? #139904
Unanswered
justinmchase
asked this question in
API and Webhooks
Replies: 1 comment 2 replies
-
hey @justinmchase, the GitHub API doesn't provide a full job graph directly. to build it, you'll need to:
check the GitHub API docs for updates. hope this helps! if it does, mark it as the answer! 😪 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
If I query the workflow api the data about the workflow is very sparse.
I can use the path to then fetch the workflow file but that workflow may have references to other workflows in other repos that I may not have permissions to get the contents of the workflow files for.
Furthermore, if I fetch the file the job ids are strings such as:
where
foo
andbar
are the ids of the jobs but when I use the api to get theworkflow_job
of a particularworkflow_run
then theid
field is along
and the only other field that is useful for resolving the job graph is thename
field... but multiple jobs can have the same name.So how can I resolve the job graph and correlate it to workflow_job events from the webhook or workflow_job api data?
What I'd really like is for the workflow api to have something similar to this data right on it:
And then for the workflow_run data to contain the field
"job_id": "foo"
somewhere.Beta Was this translation helpful? Give feedback.
All reactions