Skip to content

build: fail check:code on merge-conflict markers in any tracked file - #1061

Merged
jimhoyd merged 1 commit into
mainfrom
claude/no-conflict-markers
Sep 30, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/no-conflict-markers

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

A merge I resolved for #1057 committed packages/auth/CHANGELOG.md with its <<<<<<</>>>>>>> lines still in it. It reached main with #1057 and was removed by #1055. No check failed: code conflicts break the typecheck, but conflicts in Markdown, JSON or YAML passed every check.

  • New scripts/check-conflict-markers.ts runs in check:code. It fails on any tracked text file with a line starting with <<<<<<< or >>>>>>> . A bare ======= is not flagged, because it is also a Markdown setext heading underline.
  • A unit test is in test/doc-checks.test.ts.
  • I checked locally that the script fails on a staged file containing markers and passes on main (no tracked file has one).

🤖 Generated with Claude Code

A resolved merge committed packages/auth/CHANGELOG.md with its conflict markers still in it (via #1057), and no check
failed: code conflicts break the typecheck, but Markdown, JSON and YAML conflicts passed everything. Removed from main
by #1055.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jimhoyd
jimhoyd enabled auto-merge (squash) September 30, 2026 15:41
@jimhoyd
jimhoyd merged commit 2ed8247 into main Sep 30, 2026
25 checks passed
@jimhoyd
jimhoyd deleted the claude/no-conflict-markers branch September 30, 2026 15:50
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