Skip to content

[WIP] Refactor long functions in pkg/workflow and pkg/cli#46537

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/lint-monster-function-length-refactor
Closed

[WIP] Refactor long functions in pkg/workflow and pkg/cli#46537
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/lint-monster-function-length-refactor

Conversation

Copilot AI commented Jul 19, 2026

Copy link
Copy Markdown
Contributor
  • Slice 1: pkg/workflow/maintenance_workflow_yaml.go - extracted helpers from buildMaintenanceWorkflowYAML
  • Slice 2: pkg/workflow/frontmatter_on_section_cleanup.go - extracted helpers from commentOutProcessedFieldsInOnSection
  • Slice 3: pkg/workflow/side_repo_maintenance.go - extracted helpers from generateSideRepoMaintenanceWorkflow
  • Slice 4: pkg/workflow/mcp_config_custom.go - extracted helpers from renderSharedMCPConfig and getMCPConfig
  • Slice 5: pkg/workflow/repo_memory.go - extracted helpers from extractRepoMemoryConfig and buildPushRepoMemoryJob
  • Slice 6: pkg/workflow/engine.go - extracted helpers from ExtractEngineConfig and applyEngineAuthEnv
  • Slice 7: pkg/cli/run_workflow_execution.go - extracted helpers from RunWorkflowOnGitHub and RunWorkflowsOnGitHub
  • Slice 8: pkg/cli/logs_command.go - extracted helpers from NewLogsCommand and large func literal
  • Additional files: ~416 files modified across pkg/cli and pkg/workflow with helper extractions
  • Build passes (make build succeeds)
  • Formatting applied (make fmt succeeds)
  • Final make golint-custom validation (agents still running)

…dings in pkg/cli and pkg/workflow

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🤖 PR Triage

Field Value
Category refactor
Risk 🟡 medium
Score 18/100 (impact:5 urgency:8 quality:5)
Action defer

[WIP] Draft with 0 code changes. Created today — wait for author to mark ready.


Automated triage — run §29677420780

Generated by 🔧 PR Triage Agent · 34.2 AIC · ⌖ 5.12 AIC · ⊞ 5.6K ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[lint-monster] [Code Quality] Shared function-length refactoring backlog for pkg/workflow and pkg/cli (677 findings)

2 participants