From 08142497a7f4a7f8c4f53929ec71fc2b42e054c1 Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Wed, 4 Feb 2026 10:32:59 +0100 Subject: [PATCH] Releasey: update check for required-checks After #3625 the `jq` select to look for required checks can be simplified to select only the `Required Checks` check/job. --- releasey/libs/_github.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/releasey/libs/_github.sh b/releasey/libs/_github.sh index 43732c61ea..dfdd627440 100755 --- a/releasey/libs/_github.sh +++ b/releasey/libs/_github.sh @@ -43,7 +43,11 @@ function check_github_checks_passed() { local repo_info="$GITHUB_REPOSITORY" local num_invalid_checks - local num_invalid_checks_retrieval_command="gh api repos/${repo_info}/commits/${commit_sha}/check-runs --jq '[.check_runs[] | select(.conclusion != \"success\" and .conclusion != \"skipped\" and (.name | startswith(\"Release - \") | not) and (.name != \"markdown-link-check\"))] | length'" + # Look for checks with names ending with ` / Required Checks`. + # The full names follow the pattern `CI/ / Required Checks`, for example + # `CI/main / Required Checks` or `CI/release/abc / Required Checks`. + # Refer to the `ci-main` job name attribute in yi-main.yml. + local num_invalid_checks_retrieval_command="gh api repos/${repo_info}/commits/${commit_sha}/check-runs --jq '[.check_runs[] | select(.conclusion != \"success\" and .conclusion != \"skipped\" and (.name | endswith(\" / Required Checks\")))] | length'" if [ ${DRY_RUN} -eq 1 ]; then print_info "DRY_RUN is enabled, skipping GitHub check verification" print_command "${num_invalid_checks_retrieval_command}"