Skip to content

autofix yaml format after decapcms writes it#189

Merged
taraxvoid merged 1 commit into
mainfrom
fix/cms-wrapper-format
Jun 30, 2026
Merged

autofix yaml format after decapcms writes it#189
taraxvoid merged 1 commit into
mainfrom
fix/cms-wrapper-format

Conversation

@taraxvoid

@taraxvoid taraxvoid commented Jun 30, 2026

Copy link
Copy Markdown
Owner

getting kinda tired of decapcms breaking yaml output and fixing it in ci

eg #188

When Decap CMS saves via git-gateway it writes files wrapped in CMS
metadata (partial/path/meta/raw/data/collection/…) instead of bare
page content. The existing CI normalize step reformatted these files
but left the structure intact, so astro check kept failing on `title:
Required`.

Detect the wrapper by checking for `data` + `collection` at root, then
extract `parsed.data` before normalizing. The CI workflow is unchanged;
it already triggers and pushes a fixup commit on every CMS PR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for queeromaha ready!

Name Link
🔨 Latest commit 5cb5d69
🔍 Latest deploy log https://app.netlify.com/projects/queeromaha/deploys/6a43e8a5c4021900083d6e98
😎 Deploy Preview https://deploy-preview-189--queeromaha.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@taraxvoid taraxvoid merged commit 3a1304f into main Jun 30, 2026
8 checks passed
@taraxvoid taraxvoid deleted the fix/cms-wrapper-format branch June 30, 2026 16:04
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