Skip to content

Fix GitHub lexicon: Workflow.jobs inline + multi-workflow support - #4

Merged
lex00 merged 1 commit into
mainfrom
fix/github-lexicon-workflow-jobs
Mar 30, 2026
Merged

lex00 merged 1 commit into
mainfrom
fix/github-lexicon-workflow-jobs

Conversation

@lex00

@lex00 lex00 commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bug fix: The GitHub lexicon serializer ignored Workflow.props.jobs entirely. Jobs had to be exported as standalone top-level entities, preventing multiple workflows from sharing a source directory.
  • Bug fix: In multi-workflow mode, all standalone Job exports were assigned to the first workflow only with no way to scope them.
  • Docs: New multi-workflow.mdx page; workflows.mdx updated with inline-jobs snippet.

Changes

  • serializer.ts: Add serializeInlineJob, buildInlineJobsSection, buildStandaloneJobsSection helpers. Both serialize functions now prefer Workflow.props.jobs with full backwards-compat fallback to standalone exports.
  • serializer.test.ts: 6 new tests (350 total, 0 fail).
  • package.json: Bump to 0.1.1.

Test plan

  • bun test lexicons/github — 350/350 pass
  • publish-lexicon CI publishes @intentius/chant-lexicon-github@0.1.1 on merge + tag

🤖 Generated with Claude Code

…w support

The serializer ignored Workflow.props.jobs entirely — all jobs had to be
exported as standalone top-level entities, making it impossible to define
multiple workflows in a single source directory.

- Add serializeInlineJob / buildInlineJobsSection / buildStandaloneJobsSection
  helpers to read Workflow.props.jobs and inline job entities directly
- serializeSingleWorkflow and serializeMultiWorkflow both prefer Workflow.props.jobs
  over standalone Job exports; standalone fallback preserved for backwards compat
- Multi-workflow mode now scopes jobs per-workflow instead of dumping all
  standalone jobs onto the first workflow
- 6 new serializer tests (350 total, 0 fail)
- Docs: add multi-workflow.mdx, update workflows.mdx serialization section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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