Skip to content

gh-prs-merge --fix: resolve version-line package.json conflicts (0.70.0) - #205

Merged
ralyodio merged 1 commit into
masterfrom
worktree-version-only-conflicts
Oct 21, 2026
Merged

ralyodio merged 1 commit into
masterfrom
worktree-version-only-conflicts

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

gh-prs-merge --fix left nixamp#316 as FIXME because package.json conflicted, but the only conflict was the version line (branch 0.52.2 vs main 0.53.3).

Now a package.json whose every conflict hunk is one "version" line a side is resolved: keep the head version if it is ahead, else bump the base patch. Manifests resolve before lockfiles rebuild. Anything else in a hunk, or a prerelease, stays FIXME. Merge and diff3 markers both handled.

Tests: 71/71 in lockfile-conflicts + prs-merge. Full suite has 1 failure in test/proxy.test.ts, which fails on master too.

🤖 Generated with Claude Code

Two PRs that each bump "version" collide on that one line, which the
lockfile repair refused as a code conflict (nixamp#316). Keep the head's
version when it is ahead of the base, else bump the base's patch, then
rebuild lockfiles from the resolved manifest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit a4e2923 into master Oct 21, 2026
@ralyodio
ralyodio deleted the worktree-version-only-conflicts branch October 21, 2026 06:46
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

41 finding(s)

HIGH/CRITICAL: 15 | MEDIUM: 12 | LOW: 14

Severity Rule Location
HIGH py-ssrf-outbound-request dev2/dev2-site:151
HIGH py-ssrf-outbound-request dev2/dev2-site:1060
HIGH py-ssrf-outbound-request dev2/dev2-site:1789
HIGH sh-remote-script-execution root-ubuntu.sh:3262
HIGH sh-remote-script-execution root-ubuntu.sh:3263
HIGH sh-remote-script-execution root-ubuntu.sh:5164
HIGH sh-remote-script-execution root-ubuntu.sh:5168
HIGH sh-remote-script-execution root-w3bs-os.sh:3639
HIGH sh-remote-script-execution root-w3bs-os.sh:3640
HIGH sh-remote-script-execution root-w3bs-os.sh:5565
HIGH sh-remote-script-execution root-w3bs-os.sh:5575
HIGH sh-remote-script-execution root-w3bs-os.sh:5582
HIGH sh-remote-script-execution root-w3bs-os.sh:5598
HIGH sh-remote-script-execution root-w3bs-os.sh:5603
HIGH sh-plaintext-download root-w3bs-os.sh:6285
MEDIUM sql-template-interpolation dev2/dev2-site:1286
MEDIUM sql-template-interpolation dev2/dev2-site:1363
MEDIUM sh-remote-script-execution root-ubuntu.sh:5372
MEDIUM redos-nested-quantifier src/domain-free.ts:56
MEDIUM redos-nested-quantifier src/emoji.ts:167
MEDIUM redos-nested-quantifier src/icon.ts:166
MEDIUM redos-nested-quantifier src/mail.ts:1047
MEDIUM sql-template-interpolation src/users-dump.ts:487
MEDIUM sql-string-concatenation src/users-dump.ts:507
MEDIUM sql-template-interpolation src/users-dump.ts:540
MEDIUM sql-string-concatenation src/users-dump.ts:574
MEDIUM redos-nested-quantifier src/wcag.ts:556
LOW secret-generic-credential src/credentials.ts:36
LOW secret-generic-credential src/credentials.ts:53
LOW secret-generic-credential src/credentials.ts:56
LOW secret-generic-credential src/credentials.ts:61
LOW secret-generic-credential src/user-export.ts:689
LOW secret-generic-credential src/user-export.ts:695
LOW secret-generic-api-key test/credentials.test.ts:208
LOW secret-generic-credential test/mail.test.ts:141
LOW secret-generic-credential test/proxy.test.ts:69
LOW secret-generic-credential test/proxy.test.ts:85
LOW secret-generic-credential test/shorten.test.ts:36
LOW secret-database-url test/users-dump.test.ts:108
LOW secret-database-url test/users-dump.test.ts:119
LOW secret-database-url test/users-dump.test.ts:120

Snippets are redacted; ThreatCrush never prints matched credential material.

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