Skip to content

ci: fail the build on unresolved merge-conflict markers (backport #1661) - #1678

Merged
kazo0 merged 1 commit into
servicing/10.0from
mergify/bp/servicing/10.0/pr-1661
Oct 16, 2026
Merged

kazo0 merged 1 commit into
servicing/10.0from
mergify/bp/servicing/10.0/pr-1661

Conversation

@mergify

@mergify mergify Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): n/a

PR Type

  • Build or CI related changes

What is the current behavior?

Mergify opens a backport PR even when its cherry-pick conflicts, and commits the <<<<<<< / >>>>>>> markers as-is. Nothing fails until the build chokes on them, deep in a long run.

What is the new behavior?

A new Conflict Markers stage scans the tree for unresolved conflict markers and fails in seconds, listing each file and line.

  • It runs on its own (dependsOn: []), so it does not wait on any other stage.
  • It scans the whole tree, not the diff, so markers already on the base branch are reported too.
  • ======= is not matched, because it is also a Markdown heading underline. Binary files are skipped.
  • The pipeline check is already required on this branch, so a failing stage blocks the PR. No branch-protection change is needed.

Other information

A PR runs the pipeline YAML from its target branch, so backport PRs are only protected once this stage is also on that release or servicing branch. That backport is a clean cherry-pick.

Tested locally: the scan passes on the current tree, and fails with both marker lines listed when a conflicted file is planted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HYd7dbzNqeaaibH62FHLgc


This is an automatic backport of pull request #1661 done by Mergify.

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit dc7482e)
@mergify

mergify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@kazo0
kazo0 merged commit 2b5c7ff into servicing/10.0 Oct 16, 2026
19 checks passed
@kazo0
kazo0 deleted the mergify/bp/servicing/10.0/pr-1661 branch October 16, 2026 15:52
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