Skip to content

fix(yunxiao): recognize legacy GitHub source sections - #772

Merged
syzsunshine219 merged 1 commit into
MemTensor:mainfrom
syzsunshine219:codex/yunxiao-legacy-source-header
Oct 28, 2026
Merged

syzsunshine219 merged 1 commit into
MemTensor:mainfrom
syzsunshine219:codex/yunxiao-legacy-source-header

Conversation

@syzsunshine219

Copy link
Copy Markdown
Collaborator

Two historical cards use a leading legacy source section (来源:GitHub Issue #394 or 来源:GitHub PR #395) followed by the original GitHub URL, rather than the current GitHub: line. The title-cleanup preview correctly validated 199 cards but rejected these two.

Recognize this anchored legacy source section, including rich-text BOM whitespace and paragraph breaks. The header type and number must agree with the immediately following GitHub URL, and the existing repository check remains in place. Links quoted later in the body, mismatched identifiers, foreign domains, and URL fragments are rejected. Card descriptions and the subject-only update payload remain unchanged.

Validation: all 31 Python tests and selected repository checks passed. The legacy regressions failed before the fix. Both real source-header formats were verified in the Yunxiao card details before implementing the compatibility path.

@syzsunshine219
syzsunshine219 merged commit 5f4f7d7 into MemTensor:main Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants