Skip to content

[plan] Rename WorkflowStep in copilot_setup.go to avoid type name collision #6837

@github-actions

Description

@github-actions

Objective

Rename the WorkflowStep type in pkg/cli/copilot_setup.go to CopilotWorkflowStep to eliminate naming confusion with the comprehensive WorkflowStep type in pkg/workflow/step_types.go.

Context

Two WorkflowStep types currently exist with different field sets:

  • pkg/workflow/step_types.go - Comprehensive version with 11 fields for workflow compilation
  • pkg/cli/copilot_setup.go - Simplified version with 5 fields for Copilot setup scaffolding

While these serve different purposes, the name collision creates confusion.

Implementation Steps

  1. Open pkg/cli/copilot_setup.go
  2. Rename type from WorkflowStep to CopilotWorkflowStep at line 42-49
  3. Update all references within the same file (estimated 3-5 locations)
  4. Run tests to verify: make test-unit
  5. Run full validation: make agent-finish

Files to Modify

  • pkg/cli/copilot_setup.go - Rename type and update references

Acceptance Criteria

  • Type renamed to CopilotWorkflowStep in copilot_setup.go
  • All references within the file updated
  • No type name collisions remain
  • All tests pass (make test-unit and make test)
  • Code builds successfully (make build)

Estimated Effort

30 minutes

Priority

Low - Improves clarity but doesn't affect functionality
Related to #6836

AI generated by Plan Command for discussion #6829

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions