merge_check: preserve Unicode line separators in squash subjects (OLD-10032) #893
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!893
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/893/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TanmaySatyam on GitHub · 2026-11-24 15:00 UTC · original
TanmaySatyam:fix/old-10032-merge-check-unicode-sep→main· +7 −1 · 2 files · 1 commits · merged 2026-11-24 16:11 UTCClaimed in the coordination issue as: OLD-10032
Summary
Carries forward
old-pr/10032(carried-over draft #300) cleanly onto currentmain(3d3770c16), preserving the original author's (maxence468) commit (52742602f, 7 insertions, 1 deletion):out.splitlines()toout.split("\n")inscripts/merge_check.py:prior_merges()so Unicode line separators (such asU+2028) inside a squash-merge subject do not split a singlegit logentry into two lines and misattribute a PR number. Matches thesplit("\n")convention already used elsewhere inscripts/merge_check.py.test_unicode_line_separator_in_squash_subjectintests/test_merge_check.py.Testing & Verification
python -I scripts/check_no_game_data.py scripts/merge_check.py tests/test_merge_check.pyexits 0).python -I tests/test_merge_check.py -v: 24/24 OK (includingtest_unicode_line_separator_in_squash_subject)python -I tests/test_text_write_line_endings.py: 3/3 OKpython -m compileall -q scripts/merge_check.py tests/test_merge_check.py: OK@LewisStephens99 on GitHub · 2026-11-24 15:09 UTC · original
Independent verification on Windows 11, Python 3.14:
n-python -I tests/test_merge_check.py: 24/24 passed.n- No game data or GPU used. AI-assisted.