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
27 changes: 27 additions & 0 deletions pkg/cli/workflows/test-copilot-set-issue-field.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
on:
workflow_dispatch:
permissions:
contents: read
issues: read
engine: copilot
safe-outputs:
set-issue-field:
max: 5
timeout-minutes: 5
---

# Test Copilot Set Issue Field

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

## Task

Set a custom field on issue #1 in the current repository.

Use the following parameters:
- **issue_number**: 1
- **field_name**: "Status"
- **value**: "In Progress"

Output results in JSONL format using the `set_issue_field` tool.
21 changes: 21 additions & 0 deletions pkg/workflow/compiler_safe_outputs_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,27 @@ func TestAddHandlerManagerConfigEnvVar(t *testing.T) {
checkJSON: true,
expectedKeys: []string{"dispatch_workflow"},
},
{
name: "dispatch_repository config",
safeOutputs: &SafeOutputsConfig{
DispatchRepository: &DispatchRepositoryConfig{
Tools: map[string]*DispatchRepositoryToolConfig{
"example_tool": {
Description: "Test dispatch",
Workflow: "test-workflow",
EventType: "test_event",
Repository: "github/example",
Max: strPtr("1"),
},
},
},
},
checkContains: []string{
"GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG",
},
checkJSON: true,
expectedKeys: []string{"dispatch_repository"},
},
{
name: "update_discussion config",
safeOutputs: &SafeOutputsConfig{
Expand Down
Loading