From fce95646f2c03a018b8d966095b19081cf253aaf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 12 Aug 2026 01:51:06 +0000 Subject: [PATCH 1/2] Initial plan From 40acb6fba1b18b140eefe12146236919dc9513f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 12 Aug 2026 02:04:03 +0000 Subject: [PATCH 2/2] Fix PR context renderer test assertion Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/workflow/pr_checkout_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/workflow/pr_checkout_test.go b/pkg/workflow/pr_checkout_test.go index 79a50aab6a0..fb4d6af166b 100644 --- a/pkg/workflow/pr_checkout_test.go +++ b/pkg/workflow/pr_checkout_test.go @@ -206,8 +206,8 @@ Test workflow with permissions but checkout should be conditional. t.Errorf("Expected PR checkout step: %v, got: %v", tt.expectPRCheckout, hasPRCheckout) } - // Check for PR context prompt using cat command - hasPRPrompt := strings.Contains(lockStr, "cat \"${RUNNER_TEMP}/gh-aw/prompts/pr_context_prompt.md\"") + // Check for PR context prompt in the renderer configuration + hasPRPrompt := strings.Contains(lockStr, `\"file\":\"pr_context_prompt.md\"`) if hasPRPrompt != tt.expectPRPrompt { t.Errorf("Expected PR context prompt: %v, got: %v", tt.expectPRPrompt, hasPRPrompt) } @@ -226,9 +226,9 @@ Test workflow with permissions but checkout should be conditional. } } - // If PR prompt is expected, verify the cat command references the correct file + // If PR prompt is expected, verify the renderer references the correct file if tt.expectPRPrompt { - if !strings.Contains(lockStr, "cat \"${RUNNER_TEMP}/gh-aw/prompts/pr_context_prompt.md\"") { + if !strings.Contains(lockStr, `\"file\":\"pr_context_prompt.md\"`) { t.Error("PR context prompt should reference pr_context_prompt.md file") } }