Skip to content

ci: fail on committed merge-conflict markers - #292

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/conflict-marker-guard
Sep 22, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/conflict-marker-guard

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

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

Audit-honesty checklist

  • N/A for docs: CI-only
  • No emojis, no private paths

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-guard CI job so PRs fail if unambiguous merge/rebase markers are committed anywhere in the tree.

The new step runs git grep for 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.

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
DrunkOnJava enabled auto-merge (squash) September 22, 2026 20:24
@cursor

cursor Bot commented Sep 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@DrunkOnJava
DrunkOnJava merged commit a81bdd1 into main Sep 22, 2026
21 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/conflict-marker-guard branch September 22, 2026 20:26
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