Skip to content

Remove failed-new-file TOC entries before opening sync PR - #289

Open
kp992 wants to merge 2 commits into
QuantEcon:mainfrom
kp992:issue-156
Open

Remove failed-new-file TOC entries before opening sync PR#289
kp992 wants to merge 2 commits into
QuantEcon:mainfrom
kp992:issue-156

Conversation

@kp992

@kp992 kp992 commented Aug 22, 2026

Copy link
Copy Markdown

When a sync run fails to translate a new lecture, the _toc.yml was committed with an entry for the absent file, producing a dangling reference that broke the target build and corrupted cross-references in every sibling lecture.

Changes: sync-orchestrator.ts (filtering logic + exported removeTocFileEntries), pr-creator.ts (PR body notice), index.ts (thread new field through). New unit tests cover flat/parts TOC layouts, the existing-file exemption, and the PR body section.

Fixes #156

@kp992

kp992 commented Aug 23, 2026

Copy link
Copy Markdown
Author

@mmcky Please review the files under src/ directory. dist-action/ was auto generated with npm run build to make the CI pass.

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.

sync opens a PR whose _toc.yml references a lecture the same run failed to translate

1 participant