I wonder if you could compose a more efficient / useful query using their GraphQL interface instead of the RESTful API? perhaps starting from here
https://docs.github.com/en/graphql/reference/objects#checksuite