mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-20 04:58:52 +00:00
ci: only read the Depends on lines, and let the label be the gate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user