Skip to content

[plan] Split frontmatter_types.go into types and parsing files #26261

@github-actions

Description

@github-actions

Objective

Split pkg/workflow/frontmatter_types.go (957 lines) by separating type definitions from parsing logic.

Context

Discussion: #26221

This file contains both type definitions and parsing logic. Per AGENTS.md conventions, parsing functions should live in a separate file when the combination exceeds the threshold.

Approach

  1. Keep all type and struct declarations in frontmatter_types.go (target ≤ 300 lines)
  2. Move ParseFrontmatterConfig, parseRuntimesConfig, parsePermissionsConfig, and other parse functions to a new frontmatter_parsing.go file

Files to Modify

  • Split: pkg/workflow/frontmatter_types.go
  • Create: pkg/workflow/frontmatter_parsing.go

Acceptance Criteria

  • frontmatter_types.go contains only type/struct declarations and is ≤ 300 lines
  • New frontmatter_parsing.go is ≤ 300 lines
  • make build && make test-unit pass without errors
  • make fmt && make lint pass without errors

Generated by Plan Command for issue #discussion #26221 · ● 150.1K ·

  • expires on Apr 16, 2026, 5:18 PM UTC

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions