[PR #893] [MERGED] merge_check: preserve Unicode line separators in squash subjects (OLD-10032) #932

Closed
opened 2026-11-26 20:19:32 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/893
Author: @TanmaySatyam
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: fix/old-10032-merge-check-unicode-sep


📝 Commits (1)

  • 5274260 merge_check: preserve Unicode line separators in squash subjects

📊 Changes

2 files changed (+7 additions, -1 deletions)

View changed files

📝 scripts/merge_check.py (+1 -1)
📝 tests/test_merge_check.py (+6 -0)

📄 Description

Claimed in the coordination issue as: OLD-10032

Summary

Carries forward old-pr/10032 (carried-over draft #300) cleanly onto current main (3d3770c16), preserving the original author's (maxence468) commit (52742602f, 7 insertions, 1 deletion):

  • Changes out.splitlines() to out.split("\n") in scripts/merge_check.py:prior_merges() so Unicode line separators (such as U+2028) inside a squash-merge subject do not split a single git log entry into two lines and misattribute a PR number. Matches the split("\n") convention already used elsewhere in scripts/merge_check.py.
  • Adds test_unicode_line_separator_in_squash_subject in tests/test_merge_check.py.

Testing & Verification

  • AI-assisted: yes (rebase and verification).
  • Synthetic fixtures only: no game data used (python -I scripts/check_no_game_data.py scripts/merge_check.py tests/test_merge_check.py exits 0).
  • Host: Windows 11, Python 3 (stdlib-only; no runtime/GPU code touched).
  • Tests:
    • python -I tests/test_merge_check.py -v: 24/24 OK (including test_unicode_line_separator_in_squash_subject)
    • python -I tests/test_text_write_line_endings.py: 3/3 OK
    • python -m compileall -q scripts/merge_check.py tests/test_merge_check.py: OK

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/893 **Author:** [@TanmaySatyam](https://github.com/TanmaySatyam) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `fix/old-10032-merge-check-unicode-sep` --- ### 📝 Commits (1) - [`5274260`](https://github.com/ubiquitarianism/leonida/commit/52742602f936d02617551a265d61c02724249cf2) merge_check: preserve Unicode line separators in squash subjects ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/merge_check.py` (+1 -1) 📝 `tests/test_merge_check.py` (+6 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-10032 ### Summary Carries forward `old-pr/10032` (carried-over draft #300) cleanly onto current `main` (`3d3770c16`), preserving the original author's (`maxence468`) commit (`52742602f`, 7 insertions, 1 deletion): - Changes `out.splitlines()` to `out.split("\n")` in `scripts/merge_check.py:prior_merges()` so Unicode line separators (such as `U+2028`) inside a squash-merge subject do not split a single `git log` entry into two lines and misattribute a PR number. Matches the `split("\n")` convention already used elsewhere in `scripts/merge_check.py`. - Adds `test_unicode_line_separator_in_squash_subject` in `tests/test_merge_check.py`. ### Testing & Verification - **AI-assisted:** yes (rebase and verification). - **Synthetic fixtures only:** no game data used (`python -I scripts/check_no_game_data.py scripts/merge_check.py tests/test_merge_check.py` exits 0). - **Host:** Windows 11, Python 3 (stdlib-only; no runtime/GPU code touched). - **Tests:** - `python -I tests/test_merge_check.py -v`: 24/24 OK (including `test_unicode_line_separator_in_squash_subject`) - `python -I tests/test_text_write_line_endings.py`: 3/3 OK - `python -m compileall -q scripts/merge_check.py tests/test_merge_check.py`: OK --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:32 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#932
No description provided.