Support .yaml suffix for podcast files - #400
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
podcasts/globbed only.yml, so a contributor naming their file with the spec-recommended.yamlsuffix was silently ignored — the file was not converted to JSON, not counted in tag stats, and not linted in CI.io.GetYAMLExtensions()helper, theconvertYamlToJsonandtagStatscommands (now usingGetAllFilesFromDirectoryWithExtensions), and theyaml-lintGitHub Actions workflow..ymlstays the canonical suffix; existing files are untouched.Test plan
go build ./...cleanconvertYamlToJsonreports111 files found with extensions [.yml .yaml](110.yml+co-op-mode.yaml); no diffs ingenerated/tagStatsruns end-to-end against../podcasts/yaml-lintworkflow passes againstpodcasts/*.yml podcasts/*.yamlpodcast-dataworkflow regenerates JSON without unexpected diffs🤖 Generated with Claude Code