Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions pkg/cli/workflows/test-copilot-create-check-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
on:
workflow_dispatch:
permissions:
contents: read
checks: write
engine: copilot
safe-outputs:
create-check-run:
max: 1
name: "Copilot Analysis"
---

# Test Copilot Create Check Run

Test the `create_check_run` safe output type with the Copilot engine.

## Task

Create a GitHub Check Run with:
- **conclusion**: "success"
- **title**: "Copilot Analysis Complete"
- **summary**: "The automated analysis completed successfully. No issues were found."

Output results in JSONL format using the `create_check_run` tool.
16 changes: 16 additions & 0 deletions pkg/workflow/compiler_safe_outputs_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,22 @@ func TestAddHandlerManagerConfigEnvVar(t *testing.T) {
checkJSON: true,
expectedKeys: []string{"merge_pull_request"},
},
{
name: "create_check_run config",
safeOutputs: &SafeOutputsConfig{
CreateCheckRun: &CreateCheckRunConfig{
BaseSafeOutputConfig: BaseSafeOutputConfig{
Max: strPtr("1"),
},
Name: "Copilot Analysis",
},
},
checkContains: []string{
"GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG",
},
checkJSON: true,
expectedKeys: []string{"create_check_run"},
},
{
name: "comment_memory config",
safeOutputs: &SafeOutputsConfig{
Expand Down
Loading