Fix computing the maximum merged PR (#7127)

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth
2026-04-28 18:15:43 +00:00
committed by GitHub
parent a8c6a7f88d
commit bb228dbcfb
2 changed files with 15 additions and 1 deletions
+10
View File
@@ -499,6 +499,16 @@ class TestCheckDependentPR(unittest.TestCase):
_OID2, "pending", "This PR has open dependencies: #1"
)
def test_query_max_merged_pr_explicit_orderBy_and_first_one(self) -> None:
self.assertIn(
"orderBy: {field: CREATED_AT, direction: DESC}",
check_dependent_pr._QUERY_MAX_MERGED_PR,
)
self.assertIn(
"first: 1",
check_dependent_pr._QUERY_MAX_MERGED_PR,
)
if __name__ == "__main__":
unittest.main()