From 48ea4092fd449618f412bf2ec49066c8dc9bbe7d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 19:02:57 +0000 Subject: [PATCH] Add missing copilot safe-output fixture files Add test fixtures for 4 safe-output types that had no copilot coverage: - close-discussion - assign-to-agent - assign-to-user - unassign-from-user These types were already covered in compiler_safe_outputs_config_test.go but lacked corresponding pkg/cli/workflows/test-copilot-*.md fixtures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../workflows/test-copilot-assign-to-agent.md | 21 +++++++++++++++++++ .../workflows/test-copilot-assign-to-user.md | 21 +++++++++++++++++++ .../test-copilot-close-discussion.md | 21 +++++++++++++++++++ .../test-copilot-unassign-from-user.md | 21 +++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 pkg/cli/workflows/test-copilot-assign-to-agent.md create mode 100644 pkg/cli/workflows/test-copilot-assign-to-user.md create mode 100644 pkg/cli/workflows/test-copilot-close-discussion.md create mode 100644 pkg/cli/workflows/test-copilot-unassign-from-user.md diff --git a/pkg/cli/workflows/test-copilot-assign-to-agent.md b/pkg/cli/workflows/test-copilot-assign-to-agent.md new file mode 100644 index 00000000000..2b0ea74bd49 --- /dev/null +++ b/pkg/cli/workflows/test-copilot-assign-to-agent.md @@ -0,0 +1,21 @@ +--- +on: + workflow_dispatch: +permissions: + contents: read + issues: read +engine: copilot +safe-outputs: + assign-to-agent: + max: 1 +--- + +# Test Copilot Assign To Agent + +Test the `assign_to_agent` safe output type with the Copilot engine. + +## Task + +Assign issue #1 to the copilot agent in this repository. + +Output results in JSONL format using the `assign_to_agent` tool. diff --git a/pkg/cli/workflows/test-copilot-assign-to-user.md b/pkg/cli/workflows/test-copilot-assign-to-user.md new file mode 100644 index 00000000000..c96f45e8684 --- /dev/null +++ b/pkg/cli/workflows/test-copilot-assign-to-user.md @@ -0,0 +1,21 @@ +--- +on: + workflow_dispatch: +permissions: + contents: read + issues: read +engine: copilot +safe-outputs: + assign-to-user: + max: 1 +--- + +# Test Copilot Assign To User + +Test the `assign_to_user` safe output type with the Copilot engine. + +## Task + +Assign issue #1 to user "octocat" in this repository. + +Output results in JSONL format using the `assign_to_user` tool. diff --git a/pkg/cli/workflows/test-copilot-close-discussion.md b/pkg/cli/workflows/test-copilot-close-discussion.md new file mode 100644 index 00000000000..66c1afe6e08 --- /dev/null +++ b/pkg/cli/workflows/test-copilot-close-discussion.md @@ -0,0 +1,21 @@ +--- +on: + workflow_dispatch: +permissions: + contents: read + discussions: read +engine: copilot +safe-outputs: + close-discussion: + max: 1 +--- + +# Test Copilot Close Discussion + +Test the `close_discussion` safe output type with the Copilot engine. + +## Task + +Close discussion #1 in this repository. + +Output results in JSONL format using the `close_discussion` tool. diff --git a/pkg/cli/workflows/test-copilot-unassign-from-user.md b/pkg/cli/workflows/test-copilot-unassign-from-user.md new file mode 100644 index 00000000000..281c442b211 --- /dev/null +++ b/pkg/cli/workflows/test-copilot-unassign-from-user.md @@ -0,0 +1,21 @@ +--- +on: + workflow_dispatch: +permissions: + contents: read + issues: read +engine: copilot +safe-outputs: + unassign-from-user: + max: 1 +--- + +# Test Copilot Unassign From User + +Test the `unassign_from_user` safe output type with the Copilot engine. + +## Task + +Unassign user "octocat" from issue #1 in this repository. + +Output results in JSONL format using the `unassign_from_user` tool.