From 09fad0c2e00f90eb96708b6ccecc6bea21ac5c6e Mon Sep 17 00:00:00 2001 From: Chris Campbell Date: Fri, 25 Sep 2026 02:23:06 +0000 Subject: [PATCH] Collapse workflow preparation log group Amp-Thread-ID: https://ampcode.com/threads/T-9f76fe40-7634-4628-b449-ad29150cb53d Co-authored-by: Amp --- hooks/command | 2 +- tests/command.bats | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/command b/hooks/command index 6dbb460..50e5a4d 100755 --- a/hooks/command +++ b/hooks/command @@ -82,7 +82,7 @@ if [[ -n "$source_ref" && ! "$source_ref" =~ ^[0-9a-f]{40}$ ]]; then source_ref="$resolved_commit" fi -echo "~~~ :github: Prepare workflows" +echo "--- :github: Prepare workflows" setup_mise "$host_platform" export MISE_YES=1 diff --git a/tests/command.bats b/tests/command.bats index b14b9ed..8dd85a5 100755 --- a/tests/command.bats +++ b/tests/command.bats @@ -184,7 +184,7 @@ teardown() { rm -rf "$TMP"; } run "$REPO/hooks/command" [ "$status" -eq 0 ] || { echo "$output"; false; } [ "$(grep -c '^resolve=' "$MOCK_LOG")" -eq 0 ] - [[ "$output" == *"~~~ :github: Prepare workflows"* ]] + [[ "$output" == *"--- :github: Prepare workflows"* ]] grep -Fx 'mise=--no-config exec github:buildkite/buildkite-gha@latest -- buildkite-gha plugin' "$MOCK_LOG" grep -Fx 'minimum-release-age=0s' "$MOCK_LOG" grep -Fx 'github-cli-tokens=false' "$MOCK_LOG"