From 8623ac5b2d7beb80ea00dcfd6b197d6036a9ba2b Mon Sep 17 00:00:00 2001 From: Grzegorz Dudek Date: Tue, 19 May 2026 15:44:08 +0200 Subject: [PATCH 1/2] revert: roll checkRuns page size back to 25 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 100-run bump in PR #33 raised the GraphQL query cost ~20× (worst case ~2,526 points/call against the 5,000/hour bucket). Revert just the inner connection; checkSuites stays at 100. Repos whose CI emits more than 25 runs in a single suite will need a different fix. Co-Authored-By: Claude Opus 4.7 (1M context) --- github/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/types.go b/github/types.go index 5b2a5b3..05ba956 100644 --- a/github/types.go +++ b/github/types.go @@ -34,7 +34,7 @@ type WorkflowRun struct { // CheckSuiteNode represents the information about the check suite information of the Node type CheckSuiteNode struct { WorkflowRun WorkflowRun - CheckRuns CheckRuns `graphql:"checkRuns(first: 100)"` + CheckRuns CheckRuns `graphql:"checkRuns(first: 25)"` } // CheckSuites represents the information about the check suite of a slice of Nodes From e664aadf06229cebd1286ece6e364b7f522def02 Mon Sep 17 00:00:00 2001 From: Grzegorz Dudek Date: Tue, 19 May 2026 15:46:20 +0200 Subject: [PATCH 2/2] revert: roll checkSuites page size back to 20 Restore the pre-PR-#33 default. Combined with the previous commit, this fully reverts PR #33's GraphQL query expansion. Co-Authored-By: Claude Opus 4.7 (1M context) --- github/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/types.go b/github/types.go index 05ba956..bd70c52 100644 --- a/github/types.go +++ b/github/types.go @@ -93,7 +93,7 @@ type EdgeRootNode struct { AuthoredDate githubv4.DateTime Author Author StatusCheckRollup StatusCheckRollup - CheckSuites CheckSuites `graphql:"checkSuites(first: 100)"` + CheckSuites CheckSuites `graphql:"checkSuites(first: 20)"` Status NodeStatus }