diff --git a/pkg/campaign/orchestrator_test.go b/pkg/campaign/orchestrator_test.go index 1c698f48400..9d41a973268 100644 --- a/pkg/campaign/orchestrator_test.go +++ b/pkg/campaign/orchestrator_test.go @@ -64,10 +64,10 @@ func TestBuildOrchestrator_BasicShape(t *testing.T) { func TestBuildOrchestrator_NoTrackerLabelDoesNotMentionTracker(t *testing.T) { spec := &CampaignSpec{ - ID: "test-campaign", - Name: "Test Campaign", - ProjectURL: "https://github.com/orgs/test/projects/1", - Workflows: []string{"test-workflow"}, + ID: "test-campaign", + Name: "Test Campaign", + ProjectURL: "https://github.com/orgs/test/projects/1", + Workflows: []string{"test-workflow"}, TrackerLabel: "", } diff --git a/pkg/campaign/template_test.go b/pkg/campaign/template_test.go index 4a96490d672..ea5ba83db87 100644 --- a/pkg/campaign/template_test.go +++ b/pkg/campaign/template_test.go @@ -96,8 +96,8 @@ func TestRenderProjectUpdateInstructions(t *testing.T) { { name: "with project URL and campaign ID", data: CampaignPromptData{ - ProjectURL: "https://github.com/orgs/test/projects/1", - CampaignID: "my-campaign", + ProjectURL: "https://github.com/orgs/test/projects/1", + CampaignID: "my-campaign", }, shouldContain: []string{ "Project Board Integration", diff --git a/pkg/cli/compile_integration_test.go b/pkg/cli/compile_integration_test.go index 7439a4fa33d..8801f7a4f3e 100644 --- a/pkg/cli/compile_integration_test.go +++ b/pkg/cli/compile_integration_test.go @@ -4,7 +4,6 @@ package cli import ( "bytes" - "context" "io" "os" "os/exec" diff --git a/pkg/cli/interfaces_test.go b/pkg/cli/interfaces_test.go index ad066e3a4c3..74566bd4659 100644 --- a/pkg/cli/interfaces_test.go +++ b/pkg/cli/interfaces_test.go @@ -27,21 +27,21 @@ func TestCommandProviderInterface(t *testing.T) { t.Run("GenBashCompletion", func(t *testing.T) { var buf bytes.Buffer err := provider.GenBashCompletion(&buf) - assert.NoError(t, err, "GenBashCompletion should not error") + require.NoError(t, err, "GenBashCompletion should not error") assert.NotEmpty(t, buf.String(), "GenBashCompletion should generate content") }) t.Run("GenZshCompletion", func(t *testing.T) { var buf bytes.Buffer err := provider.GenZshCompletion(&buf) - assert.NoError(t, err, "GenZshCompletion should not error") + require.NoError(t, err, "GenZshCompletion should not error") assert.NotEmpty(t, buf.String(), "GenZshCompletion should generate content") }) t.Run("GenFishCompletion", func(t *testing.T) { var buf bytes.Buffer err := provider.GenFishCompletion(&buf, true) - assert.NoError(t, err, "GenFishCompletion should not error") + require.NoError(t, err, "GenFishCompletion should not error") assert.NotEmpty(t, buf.String(), "GenFishCompletion should generate content") }) } diff --git a/pkg/cli/run_command_test.go b/pkg/cli/run_command_test.go index 3c73035e2cd..ceaaec4290d 100644 --- a/pkg/cli/run_command_test.go +++ b/pkg/cli/run_command_test.go @@ -3,7 +3,6 @@ package cli import ( - "context" "fmt" "strings" "testing" diff --git a/pkg/cli/status_command.go b/pkg/cli/status_command.go index 88bd150a22b..67aac7d8241 100644 --- a/pkg/cli/status_command.go +++ b/pkg/cli/status_command.go @@ -372,7 +372,6 @@ func getMarkdownWorkflowFiles() ([]string, error) { return getMarkdownWorkflowFilesInDir(getWorkflowsDir()) } - // getMarkdownWorkflowFilesInDir finds all markdown workflow files in the provided directory. // This is primarily used for shell completions and tests to avoid relying on process-wide cwd. func getMarkdownWorkflowFilesInDir(workflowsDir string) ([]string, error) { diff --git a/pkg/workflow/safe_output_validation_config.go b/pkg/workflow/safe_output_validation_config.go index 0742a091071..6971af4eac6 100644 --- a/pkg/workflow/safe_output_validation_config.go +++ b/pkg/workflow/safe_output_validation_config.go @@ -230,7 +230,7 @@ var ValidationConfig = map[string]TypeValidationConfig{ }, }, "update_project": { - DefaultMax: 10, + DefaultMax: 10, CustomValidation: "updateProjectValidTarget", Fields: map[string]FieldValidation{ "project": {Required: true, Type: "string", Sanitize: true, MaxLength: 512, Pattern: "^https://github\\.com/(orgs|users)/[^/]+/projects/\\d+", PatternError: "must be a full GitHub project URL (e.g., https://github.com/orgs/myorg/projects/42)"},