This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 7270b07d5 Releasey: update check for required-checks (#3667)
7270b07d5 is described below
commit 7270b07d5718cb6446f751467ec73430ec19f893
Author: Robert Stupp <[email protected]>
AuthorDate: Thu Feb 5 17:45:38 2026 +0100
Releasey: update check for required-checks (#3667)
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 43732c61e..dfdd62744 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/<branch-name> / 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}"