jamesdumay I really find it hard to understand the use-case here. EITHER there has been a scan, in which case there will be builds scheduled... OR we'd have to do a scan, in which case there will be builds scheduled... OR we need a magic unicorn that will tell us about commits that have not been notified to us yet...
Or is your ask: of the builds scheduled, how long is each build's chain of unbuilt commits? That could be costly to determine.
Inclined to close as WONTFIX but I will give you an opportunity to explain your ask better
michaelneale KK wanted a ticket to show other Jenkins devs to find a path forward for this one.