ci: only read the Depends on lines, and let the label be the gate

This commit is contained in:
Lunny Xiao
2026-09-08 12:03:59 -07:00
parent 83cbd0138f
commit fecad73221
3 changed files with 78 additions and 26 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ for index in $indexes; do
# the check script exits 0 when every reference is merged; it needs the label
# to be absent from its input to stay quiet about it, so drop it here
jq 'del(.labels)' "$work/pull.json" > "$work/pull-unlabelled.json"
if ! output="$("$here/check-upstream-deps.sh" "$work/pull-unlabelled.json" 2>&1)"; then
# REQUIRE_VERIFIED keeps a dependency whose state could not be determined from
# counting as merged, which would drop the label too early
if ! output="$(REQUIRE_VERIFIED=1 "$here/check-upstream-deps.sh" "$work/pull-unlabelled.json" 2>&1)"; then
echo "#$index still waits for upstream:"
printf '%s\n' "$output" | sed 's/^/ /'
continue