I’d like to get the complete set of workflows (even if just the ids and time started/stopped) across all workflows and branches in a project.
The insights API doesn’t seem to cut it here, because I need to know:
The names of all workflows that have run in the last 90 days. Workflows get renamed periodically, or even just appear and disappear as people test things out. This is hard to find
The names of all branches that have triggered builds in the last 90 days. Branches come and go frequently. This is hard to find
The pipelines API gets closer but involves a lot of work. I’d have to go through each page of pipelines from the last 90 days, then use that to look up each pipeline’s workflows and sort by
stopped_at. Unfortunately, this is definitely hundreds and possibly thousands of pipelines to sort through.
I could also go through the pipeline-> workflow process and use it to query the recent workflows API so I only have to store the
workflow_name pair, which would result in nicer output but many more API calls.
What’s my most efficient option for getting workflow runs sorted by either creation or stopping time?