Skip to content

Support .yaml suffix for podcast files - #400

Merged
andygrunwald merged 1 commit into
mainfrom
andygrunwald/support-yaml-extension
May 2, 2026
Merged

Support .yaml suffix for podcast files#400
andygrunwald merged 1 commit into
mainfrom
andygrunwald/support-yaml-extension

Conversation

@andygrunwald

Copy link
Copy Markdown
Contributor

Summary

  • Every consumer of podcasts/ globbed only .yml, so a contributor naming their file with the spec-recommended .yaml suffix was silently ignored — the file was not converted to JSON, not counted in tag stats, and not linted in CI.
  • Widen the glob in all four call sites: a new io.GetYAMLExtensions() helper, the convertYamlToJson and tagStats commands (now using GetAllFilesFromDirectoryWithExtensions), and the yaml-lint GitHub Actions workflow.
  • .yml stays the canonical suffix; existing files are untouched.

Test plan

  • go build ./... clean
  • convertYamlToJson reports 111 files found with extensions [.yml .yaml] (110 .yml + co-op-mode.yaml); no diffs in generated/
  • tagStats runs end-to-end against ../podcasts/
  • CI: yaml-lint workflow passes against podcasts/*.yml podcasts/*.yaml
  • CI: podcast-data workflow regenerates JSON without unexpected diffs

🤖 Generated with Claude Code

Every consumer of podcasts/ globbed only for the `.yml` extension, so a
contributor who named their file with the spec-recommended `.yaml`
suffix would be silently ignored: the file was not converted to JSON,
not counted in tag stats, and not linted in CI.

Widen the glob in all four call sites (Go I/O helper accessor, the
convertYamlToJson and tagStats commands, and the yaml-lint workflow)
to accept both `.yml` and `.yaml`, while keeping `.yml` as the
canonical suffix so existing files remain untouched.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@andygrunwald
andygrunwald merged commit 8962dc4 into main May 2, 2026
5 checks passed
@andygrunwald
andygrunwald deleted the andygrunwald/support-yaml-extension branch May 2, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant