[merge bot] Migrate Rest API to GraphQL (#81264)
Before, we were using the Rest API to get the land checks but it's better to use graphql for rate limiting reasons and for pagination. This PR switches it over to using graphql.
Should also fix https://github.com/pytorch/pytorch/issues/81152
Test Plan:
Tested it locally and added additional tests
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81264
Approved by: https://github.com/malfet