Skip to content

fix: auto-wire field-aware merge driver on install (prepare hook) + pm-cli ^2026.7.21#6

Merged
unbraind merged 1 commit into
mainfrom
fix/auto-wire-merge-driver
Jul 21, 2026
Merged

fix: auto-wire field-aware merge driver on install (prepare hook) + pm-cli ^2026.7.21#6
unbraind merged 1 commit into
mainfrom
fix/auto-wire-merge-driver

Conversation

@unbraind

@unbraind unbraind commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Follow-up to #5 (which committed the .gitattributes merge-driver fence). The fence is inert without the per-clone merge.<name>.driver git config, so a fresh clone/CI falls back to Git text merge. Adds a guarded prepare script (if command -v pm >/dev/null 2>&1; then pm merge install; fi) that auto-wires the config on npm install/npm ci when pm is present and skips cleanly when it isn't (e.g. --omit=dev) — no || true, so real errors surface. Adds a merge:install script + README note, and bumps @unbrained/pm-cli to ^2026.7.21. Verified: with config unset, npm ci restores merge.pm-item-toon.driver. Companion epic: pm-cli-website-juz0.


Summary by cubic

Auto-installs the pm-cli field-aware Git merge driver on install so .agents/pm/ merges cleanly on fresh clones and CI. Adds a guarded prepare script and a merge:install script; updates README and bumps @unbrained/pm-cli to ^2026.7.21.

  • Bug Fixes

    • Run pm merge install in prepare when pm is available; no-op otherwise.
    • Add merge:install script and README guidance.
  • Dependencies

    • Update @unbrained/pm-cli to ^2026.7.21 and sync lockfile.

Written for commit 3741278. Summary will update on new commits.

Review in cubic

…2026.7.21

The .gitattributes merge-driver fence adopted in PR #5 is inert without the
per-clone merge.<name>.driver git config. Add a guarded `prepare`
(`if command -v pm; then pm merge install; fi`) so npm install/ci wires it
automatically when pm is present and skips cleanly otherwise (e.g. --omit=dev);
plus a merge:install script and a README note. Bump @unbrained/pm-cli devDep
to ^2026.7.21 (driver requires 2026.7.20+) and sync the lockfile.

Verified: with config unset, npm ci restores merge.pm-item-toon.driver;
typecheck/test/changelog:check green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @unbraind, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@unbraind, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 15 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6141c6e9-6973-46e6-b8d2-1a9776156efe

📥 Commits

Reviewing files that changed from the base of the PR and between 95e6ac2 and 3741278.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • README.md
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/auto-wire-merge-driver

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repository has used its 100 free open-source review credits for this billing period. An organization admin can enable additional billed reviews, or reviews resume next period.

@unbraind
unbraind merged commit 1958e89 into main Jul 21, 2026
5 checks passed
@unbraind
unbraind deleted the fix/auto-wire-merge-driver branch July 21, 2026 22:21
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