Repository navigation
ci: fail on committed merge-conflict markers - #292
Merged
Merged
Conversation
Three diff3 base markers ('||||||| <base>') sat in CHANGELOG.md, two of
them since #221, because a resolved rebase can leave the base marker
behind and nothing checked for it. The required PII guard job gains a
step that fails on any line starting with <<<<<<<, ||||||| or >>>>>>>
followed by a space or end of line. '=======' alone is left out because
it is also a Markdown setext underline.
DrunkOnJava
enabled auto-merge (squash)
September 22, 2026 20:24
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_d83b9854-9f02-4377-bcf2-25a08521e956) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The required PII guard job gains a step that fails when a merge-conflict marker is committed.
Motivation
Three diff3 base markers (
||||||| <base>) sat in CHANGELOG.md, two of them since #221. A rebase can be resolved and still leave the base marker behind, and nothing checked for it. #290 removed them; this stops them coming back.Changes
.github/workflows/ci.yml:git grep -I -E '^(<<<<<<<|\|\|\|\|\|\|\||>>>>>>>)( |$)'over the tree, in the existing PII guard job so it is required without a ruleset change.=======alone is excluded because it is also a Markdown setext underline.Testing
||||||| abclineAudit-honesty checklist
Breaking changes
None.
Note
Low Risk
CI-only guardrail with no runtime, auth, or data-handling impact.
Overview
Adds a required conflict-marker scan to the existing
pii-guardCI job so PRs fail if unambiguous merge/rebase markers are committed anywhere in the tree.The new step runs
git grepfor line-anchored<<<<<<<,|||||||, or>>>>>>>(including diff3 base markers that can linger after a “resolved” rebase). It deliberately does not match=======alone, since that string is also valid Markdown underline syntax.No application code changes—only
.github/workflows/ci.yml.Reviewed by Cursor Bugbot for commit 9d394fa. Configure here.