From 973718712aa9b32c1ab702eb520384ff826d0f5b Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Wed, 16 Jul 2025 15:36:53 -0400 Subject: [PATCH] Fix failing tests for Copilot replacement --- pkg/cmd/issue/create/create_test.go | 2 +- pkg/cmd/pr/shared/params_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/issue/create/create_test.go b/pkg/cmd/issue/create/create_test.go index 65731e561..80c8f76d3 100644 --- a/pkg/cmd/issue/create/create_test.go +++ b/pkg/cmd/issue/create/create_test.go @@ -317,7 +317,7 @@ func Test_createRun(t *testing.T) { WebMode: true, Assignees: []string{"@copilot"}, }, - wantsBrowse: "https://github.com/OWNER/REPO/issues/new?assignees=copilot&body=", + wantsBrowse: "https://github.com/OWNER/REPO/issues/new?assignees=Copilot&body=", wantsStderr: "Opening https://github.com/OWNER/REPO/issues/new in your browser.\n", }, { diff --git a/pkg/cmd/pr/shared/params_test.go b/pkg/cmd/pr/shared/params_test.go index 1291b2c99..3c95a9a5d 100644 --- a/pkg/cmd/pr/shared/params_test.go +++ b/pkg/cmd/pr/shared/params_test.go @@ -210,7 +210,7 @@ func TestCopilotReplacer_ReplaceSlice(t *testing.T) { args: args{ handles: []string{"monalisa", "@copilot", "hubot"}, }, - want: []string{"monalisa", "copilot", "hubot"}, + want: []string{"monalisa", "Copilot", "hubot"}, }, { name: "handles no @copilot mentions",