Need help , API to get all the "Status checks found in the last week for this repository"

Hi ,
How can I get all the “Status checks found in the last week for this repository” through github api . The end point
/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts

does not give the not required checks that are mentioned in the “Status checks found in the last week for this repository” . What I am trying to do is to query all the checks and if a particular check is available I want to enable it .

Can any one please help me

For people wondering where this phrase comes from,

https://open-sdg.readthedocs.io/en/latest/automation/github/


I suspect you get to use GraphQL

Will get you commits of some sort.

From there, you can ask for status checks. I believe it’s this:

https://docs.github.com/en/graphql/reference/objects#statuscontext

Good luck