[GH1] Add builds as required status checks (#78086)

Third attempt of #77596
Pull Request resolved: https://github.com/pytorch/pytorch/pull/78086
Approved by: https://github.com/suo, https://github.com/seemethere, https://github.com/malfet
diff --git a/.github/merge_rules.json b/.github/merge_rules.json
index 2dbd6c4..ba5f359 100644
--- a/.github/merge_rules.json
+++ b/.github/merge_rules.json
@@ -18,7 +18,28 @@
          "torch/onnx/**"
       ],
       "approved_by": ["BowenBao", "garymm"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "NVFuser",
@@ -29,25 +50,109 @@
          "benchmarks/cpp/nvfuser/**"
       ],
       "approved_by": ["csarofeen", "ngimel", "jjsjann123"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "OSS CI",
       "patterns": [".github/**", ".circleci/**", ".jenkins/**", "scripts/**", "tools/**"],
       "approved_by": ["ezyang", "pytorch/pytorch-dev-infra"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "Documentation",
       "patterns": ["docs/**", "torch/*docs.py"],
       "approved_by": ["mruberry", "ngimel", "janeyx99"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "Mobile",
       "patterns": ["ios/**", "android/**", "test/mobile/**"],
       "approved_by": ["linbinyu", "kit1980", "IvanKobzarev", "dreiss"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "Linear Algebra",
@@ -64,7 +169,28 @@
          "test/test_linalg.py"
       ],
       "approved_by": ["nikitaved", "mruberry", "pearu", "Lezcano", "IvanYashchuk"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "FFT",
@@ -81,7 +207,28 @@
          "test/cpp/api/fft.cpp"
       ],
       "approved_by": ["mruberry", "peterbell10"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "Sparse",
@@ -103,12 +250,54 @@
          "test/**/*sparse*"
       ],
       "approved_by": ["nikitaved", "cpuhrsch", "pearu", "IvanYashchuk"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    },
    {
       "name": "superuser",
       "patterns": ["*"],
       "approved_by": ["pytorch/metamates"],
-      "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+      "mandatory_checks_name": [
+         "Facebook CLA Check",
+         "Lint",
+         "linux-docs / build-docs (cpp)",
+         "linux-docs / build-docs (python)",
+         "win-vs2019-cpu-py3 / build",
+         "win-vs2019-cuda11.3-py3 / build",
+         "linux-xenial-py3.7-gcc7-no-ops / build",
+         "linux-bionic-py3.7-clang9 / build",
+         "linux-xenial-py3.7-clang7-onnx / build",
+         "linux-xenial-py3.7-gcc5.4-mobile-lightweight-dispatch-build / build",
+         "linux-xenial-py3.7-gcc5.4 / build",
+         "linux-xenial-py3.7-gcc7 / build",
+         "linux-xenial-py3.7-clang7-asan / build",
+         "linux-vulkan-bionic-py3.7-clang9 / build",
+         "linux-xenial-cuda11.3-py3.7-gcc7 / build",
+         "linux-bionic-cuda11.3-py3.7-clang9 / build",
+         "linux-xenial-py3-clang5-mobile-build / build",
+         "linux-xenial-py3-clang5-mobile-custom-build-static / build",
+         "pytorch-xla-linux-bionic-py3.7-clang8 / build",
+         "deploy-linux-xenial-cuda11.3-py3.7-gcc7 / build"
+      ]
    }
 ]
diff --git a/.github/scripts/gql_mocks.json b/.github/scripts/gql_mocks.json
index 5856f71..c3261b5 100644
--- a/.github/scripts/gql_mocks.json
+++ b/.github/scripts/gql_mocks.json
@@ -344,7 +344,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMy0wNFQxNDoyNDo0OC0wODowMLkyMDIyLTAzLTA0VDE0OjI0OjQ4LTA4OjAwzjWwwqA=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMy0wNFQxNzoyNDo0OC0wNTowMLkyMDIyLTAzLTA0VDE3OjI0OjQ4LTA1OjAwzjWwwqA=",
               "hasPreviousPage": false
             }
           },
@@ -2463,7 +2463,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAxOS0xMi0zMFQxMDoxOToxMS0wODowMLkyMDE5LTEyLTMwVDEwOjE5OjExLTA4OjAwzhQZLuY=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAxOS0xMi0zMFQxMzoxOToxMS0wNTowMLkyMDE5LTEyLTMwVDEzOjE5OjExLTA1OjAwzhQZLuY=",
               "hasPreviousPage": false
             }
           },
@@ -6948,7 +6948,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNC0yNVQxMTozNTowMS0wNzowMLkyMDIyLTA0LTI1VDExOjM1OjAwLTA3OjAwzjjC2d0=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNC0yNVQxNDozNTowMS0wNDowMLkyMDIyLTA0LTI1VDE0OjM1OjAwLTA0OjAwzjjC2d0=",
               "hasPreviousPage": true
             }
           },
@@ -7009,7 +7009,7 @@
       }
     }
   },
-  "query_sha=6a8ce6412a780d5804bfe180ed1dc807269e1eae2ae50de2346d56d1283884bc cursor=Y3Vyc29yOnYyOpO5MjAyMi0wNC0yNVQxMTozNTowMS0wNzowMLkyMDIyLTA0LTI1VDExOjM1OjAwLTA3OjAwzjjC2d0= name=pytorch number=76123 owner=pytorch": {
+  "query_sha=6a8ce6412a780d5804bfe180ed1dc807269e1eae2ae50de2346d56d1283884bc cursor=Y3Vyc29yOnYyOpO5MjAyMi0wNC0yNVQxNDozNTowMS0wNDowMLkyMDIyLTA0LTI1VDE0OjM1OjAwLTA0OjAwzjjC2d0= name=pytorch number=76123 owner=pytorch": {
     "data": {
       "repository": {
         "pullRequest": {
@@ -7071,7 +7071,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNC0yMlQyMDozNzo1NC0wNzowMLkyMDIyLTA0LTIyVDE2OjAyOjA5LTA3OjAwzjip7G8=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNC0yMlQyMzozNzo1NC0wNDowMLkyMDIyLTA0LTIyVDE5OjAyOjA5LTA0OjAwzjip7G8=",
               "hasPreviousPage": false
             }
           }
@@ -7843,7 +7843,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMS0yNVQwODoyODoxMC0wODowMLkyMDIyLTAxLTI1VDA3OjU0OjA1LTA4OjAwzjNooqI=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMS0yNVQxMToyODoxMC0wNTowMLkyMDIyLTAxLTI1VDEwOjU0OjA1LTA1OjAwzjNooqI=",
               "hasPreviousPage": false
             }
           },
@@ -9256,7 +9256,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNC0wNlQxMjo1NjoyNC0wNzowMLkyMDIyLTA0LTA2VDA4OjQwOjM4LTA3OjAwzjenO6Y=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNC0wNlQxNTo1NjoyNC0wNDowMLkyMDIyLTA0LTA2VDExOjQwOjM4LTA0OjAwzjenO6Y=",
               "hasPreviousPage": false
             }
           },
@@ -9999,7 +9999,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNS0xOFQxMjo0MTowNS0wNzowMLkyMDIyLTA1LTE4VDEyOjQxOjA0LTA3OjAwzjpD7es=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wNS0xOFQxNTo0MTowNS0wNDowMLkyMDIyLTA1LTE4VDE1OjQxOjA0LTA0OjAwzjpD7es=",
               "hasPreviousPage": false
             }
           },
@@ -11746,7 +11746,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMS0xMi0xMFQwOToyNDoxOS0wODowMLkyMDIxLTEyLTEwVDA5OjI0OjE5LTA4OjAwzjFryLE=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMS0xMi0xMFQxMjoyNDoxOS0wNTowMLkyMDIxLTEyLTEwVDEyOjI0OjE5LTA1OjAwzjFryLE=",
               "hasPreviousPage": false
             }
           },
@@ -13764,7 +13764,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMi0xOFQxNzoxODo0NC0wODowMLkyMDIyLTAyLTE4VDE3OjE4OjQ0LTA4OjAwzjTr0H0=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMi0xOFQyMDoxODo0NC0wNTowMLkyMDIyLTAyLTE4VDIwOjE4OjQ0LTA1OjAwzjTr0H0=",
               "hasPreviousPage": false
             }
           },
@@ -14629,7 +14629,7 @@
               }
             ],
             "pageInfo": {
-              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMy0yM1QxNTo1MDo0NS0wNzowMLkyMDIyLTAzLTIzVDE1OjUwOjQ1LTA3OjAwzjbPEDg=",
+              "startCursor": "Y3Vyc29yOnYyOpO5MjAyMi0wMy0yM1QxODo1MDo0NS0wNDowMLkyMDIyLTAzLTIzVDE4OjUwOjQ1LTA0OjAwzjbPEDg=",
               "hasPreviousPage": false
             }
           },
@@ -15466,9 +15466,6 @@
                 "login": "jg2912"
               },
               {
-                "login": "jwpark1985"
-              },
-              {
                 "login": "robieta"
               },
               {
@@ -15593,27 +15590,27 @@
               },
               {
                 "login": "samdow"
+              },
+              {
+                "login": "dzhulgakov"
               }
             ],
             "pageInfo": {
               "hasNextPage": true,
-              "endCursor": "Y3Vyc29yOnYyOpHOARD0hA=="
+              "endCursor": "Y3Vyc29yOnYyOpHOARD9PA=="
             }
           }
         }
       }
     }
   },
-  "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=Y3Vyc29yOnYyOpHOARD0hA== name=metamates org=pytorch": {
+  "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=Y3Vyc29yOnYyOpHOARD9PA== name=metamates org=pytorch": {
     "data": {
       "organization": {
         "team": {
           "members": {
             "nodes": [
               {
-                "login": "dzhulgakov"
-              },
-              {
                 "login": "great-way"
               },
               {
@@ -15909,27 +15906,27 @@
               },
               {
                 "login": "mvsampath"
+              },
+              {
+                "login": "cheetah2216"
               }
             ],
             "pageInfo": {
               "hasNextPage": true,
-              "endCursor": "Y3Vyc29yOnYyOpHOA5ai_g=="
+              "endCursor": "Y3Vyc29yOnYyOpHOA5-fyQ=="
             }
           }
         }
       }
     }
   },
-  "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=Y3Vyc29yOnYyOpHOA5ai_g== name=metamates org=pytorch": {
+  "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=Y3Vyc29yOnYyOpHOA5-fyQ== name=metamates org=pytorch": {
     "data": {
       "organization": {
         "team": {
           "members": {
             "nodes": [
               {
-                "login": "cheetah2216"
-              },
-              {
                 "login": "pinaki-mukerji"
               },
               {
@@ -16017,9 +16014,6 @@
                 "login": "yidawang-oss"
               },
               {
-                "login": "beback4u"
-              },
-              {
                 "login": "asalioufb"
               },
               {
@@ -16059,438 +16053,47 @@
       }
     }
   },
-  "query_sha=4fa42dda073cf7ac75b2bbf595a8ef67b6dfff4bd248668750ff33ea913bf75f cursor=Y3Vyc29yOnYyOpHPAAAAAUK_Uc0= name=pytorch number=71759 owner=pytorch": {
+  "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=None name=pytorch-dev-infra org=pytorch": {
     "data": {
-      "repository": {
-        "pullRequest": {
-          "commits": {
+      "organization": {
+        "team": {
+          "members": {
             "nodes": [
               {
-                "commit": {
-                  "oid": "346e0c547953d98eb84d23c1391a95badb9c4a22",
-                  "checkSuites": {
-                    "edges": [
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-xenial-cuda11.3-py3.7-gcc7"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020053?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 1, 2, linux.4xlarge.nvidia.gpu)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302536958?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (distributed, 1, 1, linux.8xlarge.nvidia.gpu)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302537118?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 2, 2, linux.4xlarge.nvidia.gpu)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302537373?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwOTJ0=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801870"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_Uc4="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "Test tools"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "test",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020045?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwGZ80=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801872"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_UdA="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-bionic-py3.7-clang9"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020051?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 1, 2, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302145103?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (noarch, 1, 1, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302145224?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 2, 2, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302145353?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwIUUk=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801874"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_UdI="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-docs"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020056?check_suite_focus=true"
-                              },
-                              {
-                                "name": "build-docs (cpp)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302148279?check_suite_focus=true"
-                              },
-                              {
-                                "name": "build-docs (python)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302148361?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwIXQk=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801876"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_UdQ="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-xenial-py3-clang5-mobile-custom-build-static"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020057?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwGZ9k=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801877"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_UdU="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "TorchBench CI (pytorch-linux-py3.7-cu102)"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "run-torchbench",
-                                "conclusion": "NEUTRAL",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302019919?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwGZ08=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SKIPPED",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801878"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_UdY="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-xenial-py3.7-gcc7"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020088?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 2, 2, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302151055?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 1, 2, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302151166?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (distributed, 1, 1, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302151251?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwIaFM=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801880"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_Udg="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "pytorch-linux-xenial-py3-clang5-android-ndk-r19c-gradle-custom-build-single"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build-and-test",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020054?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwGZ9Y=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801882"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_Udo="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "win-vs2019-cpu-py3"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302019942?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 1, 2, windows.4xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5303136931?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 2, 2, windows.4xlarge)",
-                                "conclusion": "FAILURE",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5303137019?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwXcvs=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "FAILURE",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801885"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_Ud0="
-                      },
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-vulkan-bionic-py3.7-clang9"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020058?check_suite_focus=true"
-                              },
-                              {
-                                "name": "test (default, 1, 1, linux.2xlarge)",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302161211?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwIjzs=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801895"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_Uec="
-                      }
-                    ],
-                    "pageInfo": {
-                      "hasNextPage": true
-                    }
-                  }
-                }
-              }
-            ]
-          }
-        }
-      }
-    }
-  },
-  "query_sha=4fa42dda073cf7ac75b2bbf595a8ef67b6dfff4bd248668750ff33ea913bf75f cursor=Y3Vyc29yOnYyOpHPAAAAAUK_Uec= name=pytorch number=71759 owner=pytorch": {
-    "data": {
-      "repository": {
-        "pullRequest": {
-          "commits": {
-            "nodes": [
+                "login": "kit1980"
+              },
               {
-                "commit": {
-                  "oid": "346e0c547953d98eb84d23c1391a95badb9c4a22",
-                  "checkSuites": {
-                    "edges": [
-                      {
-                        "node": {
-                          "app": {
-                            "name": "GitHub Actions",
-                            "databaseId": 15368
-                          },
-                          "workflowRun": {
-                            "workflow": {
-                              "name": "linux-xenial-py3.7-gcc7-no-ops"
-                            }
-                          },
-                          "checkRuns": {
-                            "nodes": [
-                              {
-                                "name": "build",
-                                "conclusion": "SUCCESS",
-                                "detailsUrl": "https://github.com/pytorch/pytorch/runs/5302020052?check_suite_focus=true"
-                              }
-                            ],
-                            "pageInfo": {
-                              "endCursor": "Y3Vyc29yOnYyOpHPAAAAATwGZ9Q=",
-                              "hasNextPage": false
-                            }
-                          },
-                          "conclusion": "SUCCESS",
-                          "url": "https://github.com/pytorch/pytorch/commit/346e0c547953d98eb84d23c1391a95badb9c4a22/checks?check_suite_id=5414801896"
-                        },
-                        "cursor": "Y3Vyc29yOnYyOpHPAAAAAUK_Ueg="
-                      }
-                    ],
-                    "pageInfo": {
-                      "hasNextPage": false
-                    }
-                  }
-                }
+                "login": "b0noI"
+              },
+              {
+                "login": "seemethere"
+              },
+              {
+                "login": "malfet"
+              },
+              {
+                "login": "tenpercent"
+              },
+              {
+                "login": "atalman"
+              },
+              {
+                "login": "osalpekar"
+              },
+              {
+                "login": "swang392"
+              },
+              {
+                "login": "janeyx99"
+              },
+              {
+                "login": "clee2000"
               }
-            ]
+            ],
+            "pageInfo": {
+              "hasNextPage": false,
+              "endCursor": "Y3Vyc29yOnYyOpHOAqnOlw=="
+            }
           }
         }
       }
@@ -17324,52 +16927,6 @@
       }
     }
   },
-  "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=None name=pytorch-dev-infra org=pytorch": {
-    "data": {
-      "organization": {
-        "team": {
-          "members": {
-            "nodes": [
-              {
-                "login": "kit1980"
-              },
-              {
-                "login": "b0noI"
-              },
-              {
-                "login": "seemethere"
-              },
-              {
-                "login": "malfet"
-              },
-              {
-                "login": "tenpercent"
-              },
-              {
-                "login": "atalman"
-              },
-              {
-                "login": "osalpekar"
-              },
-              {
-                "login": "swang392"
-              },
-              {
-                "login": "janeyx99"
-              },
-              {
-                "login": "clee2000"
-              }
-            ],
-            "pageInfo": {
-              "hasNextPage": false,
-              "endCursor": "Y3Vyc29yOnYyOpHOAqnOlw=="
-            }
-          }
-        }
-      }
-    }
-  },
   "query_sha=a91ab398f97fb43cbe6e0899980dad8ff7447457ea5a71bbc59f7702a9280eb5 cursor=None name=qwertyuiop org=pytorch": {
     "data": {
       "organization": {
diff --git a/.github/scripts/test_trymerge.py b/.github/scripts/test_trymerge.py
index 7dca4ad..2c34042 100755
--- a/.github/scripts/test_trymerge.py
+++ b/.github/scripts/test_trymerge.py
@@ -77,7 +77,7 @@
     @mock.patch('trymerge.gh_graphql', side_effect=mocked_gh_graphql)
     def test_match_rules(self, mocked_gql: Any) -> None:
         "Tests that PR passes merge rules"
-        pr = GitHubPR("pytorch", "pytorch", 71759)
+        pr = GitHubPR("pytorch", "pytorch", 77700)
         repo = GitRepo(get_git_repo_dir(), get_git_remote_name())
         self.assertTrue(find_matching_merge_rule(pr, repo) is not None)