From 2445eb920fd37b3feed363576cb2fca43e835079 Mon Sep 17 00:00:00 2001 From: Grzegorz Dudek Date: Tue, 19 May 2026 12:40:20 +0200 Subject: [PATCH 1/2] fix: raise checkSuites/checkRuns page size to 100 The hardcoded checkRuns(first: 25) silently dropped required status checks once a repo's CI suite grew past 25 runs, causing every commit to evaluate as StatusSuccess=false and blocking promotion. Bump both checkSuites and checkRuns to the GraphQL maximum of 100. --- github/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/types.go b/github/types.go index bd70c52..5b2a5b3 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: 25)"` + CheckRuns CheckRuns `graphql:"checkRuns(first: 100)"` } // CheckSuites represents the information about the check suite of a slice of Nodes @@ -93,7 +93,7 @@ type EdgeRootNode struct { AuthoredDate githubv4.DateTime Author Author StatusCheckRollup StatusCheckRollup - CheckSuites CheckSuites `graphql:"checkSuites(first: 20)"` + CheckSuites CheckSuites `graphql:"checkSuites(first: 100)"` Status NodeStatus } From 408cfe10792193cf4605a445960790a2dfe4ebfa Mon Sep 17 00:00:00 2001 From: Grzegorz Dudek Date: Tue, 19 May 2026 12:48:01 +0200 Subject: [PATCH 2/2] ci: bump pre-commit/action to v3.0.1 (SHA-pinned) v2.0.3 relies on the deprecated GitHub Actions cache v1/v2 API, which now returns HTML error pages and breaks the Static Checks job. v3.0.1 uses actions/cache@v4. Pinned by commit SHA for supply-chain safety. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/pull_requests_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_requests_tests.yaml b/.github/workflows/pull_requests_tests.yaml index 862f870..0b95dbf 100644 --- a/.github/workflows/pull_requests_tests.yaml +++ b/.github/workflows/pull_requests_tests.yaml @@ -26,4 +26,4 @@ jobs: env: GOLANGCI_LINT_VERSION: "1.44.2" - name: Run pre-commit - uses: pre-commit/action@v2.0.3 + uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1