Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/workflow/pr_checkout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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")
}
}
Expand Down
Loading