Skip to content

stop the workshop dates job breaking markdown formatting - #2923

Merged
marcoow merged 3 commits into
masterfrom
fix-workshop-dates-formatting
Nov 15, 2026
Merged

marcoow merged 3 commits into
masterfrom
fix-workshop-dates-formatting

Conversation

@KevinBongart

Copy link
Copy Markdown
Member

Follow-up to #2916, which Marco rightly pointed out was treating the symptom — the daily job keeps reintroducing it. History shows the cycle: five update upcoming workshop dates commits, each followed by a manual fix lint errors.

Cause. scripts/update-workshop-dates.js used matter.stringify(content, data), which re-serializes the entire front matter through js-yaml, not just the dates. That reflows every other key and leaves the file failing prettier --check. It hits the 7 files with a ticket_tailor_event_series_id — exactly the 7 that keep failing lint.

The job's existing pnpm lint:md:fix step doesn't save it: in the last run prettier reported rewriting all 7 files, yet the pushed commit still failed prettier --check.

Changes

  • Rewrite only the upcomingDates block, leaving the rest of the file byte for byte as it was.
  • Add a pnpm lint:md check after the format step, so the job fails loudly instead of pushing content that breaks CI on master.
  • Skip the commit when there are no date changes. git commit with nothing staged exits 1, which is why 4 of the last 5 scheduled runs are red — a permanently-failing daily job is why this went unnoticed.

Verified against all 7 files for no dates, one date, and two dates. In each case the body and every other front-matter key are untouched, the parsed dates are correct, and prettier --check passes with no format step at all. Same inputs through the old matter.stringify path break all 7.

🤖 Generated with Claude Code

Comment thread .github/workflows/workshops.yaml Resolved
@marcoow
marcoow force-pushed the fix-workshop-dates-formatting branch 2 times, most recently from 29d5a88 to d8c3dd3 Compare November 15, 2026 13:10
@marcoow
marcoow force-pushed the fix-workshop-dates-formatting branch from d8c3dd3 to 8e056f5 Compare November 15, 2026 13:14
@marcoow
marcoow force-pushed the fix-workshop-dates-formatting branch from 8e056f5 to 686bc2b Compare November 15, 2026 13:14
@marcoow
marcoow merged commit 33d7b25 into master Nov 15, 2026
18 of 20 checks passed
@marcoow
marcoow deleted the fix-workshop-dates-formatting branch November 15, 2026 13:24
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.

2 participants