Skip to content

refactor: dedupe pr.js base detection onto git detectDefaultBaseBranch, drop dead rawRun (plan phase 5)#620

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/phase5-public-cli-dedup-base-detection-s-2026-06-03-14-28
Jun 3, 2026
Merged

refactor: dedupe pr.js base detection onto git detectDefaultBaseBranch, drop dead rawRun (plan phase 5)#620
NagyVikt merged 1 commit into
mainfrom
agent/claude/phase5-public-cli-dedup-base-detection-s-2026-06-03-14-28

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

@NagyVikt NagyVikt commented Jun 3, 2026

Automated by gx branch finish (PR flow).

…h, drop dead rawRun (plan phase 5)

Phase 5 of the gitguardex improvement plan (focused scope). Unblocked by #618.

- pr.js: remove the drifted local detectBaseBranch; resolve PR base via git's canonical
  detectDefaultBaseBranch (imported from ./git). Removed the redundant pr-module test
  (detector is covered by test/git-base-branch.test.js from #618).
- git/index.js: remove the dead `rawRun` import + `void rawRun;` scaffolding (deferred
  from Phase 1 A12 while the base-branch WIP was unlanded) and the stale JSDoc reference.

Deferred (with reasons): A3 sandbox-helper consolidation (3 of 8 helpers DRIFTED between
sandbox/index.js and cli/shared/sandbox.js -> needs drift reconciliation, not a partial
dedup); A7 launch.js registry-shape (inferred/not-verified defensive code); B5 finish
base-branch hoist (marginal perf, finish not a hot loop).

Verification: node --test 33 failures (baseline unchanged, zero new); the 3 pr-module
failures are pre-existing env failures (verified present on base). openspec validate pass.
@NagyVikt NagyVikt merged commit 8b1ad92 into main Jun 3, 2026
@NagyVikt NagyVikt deleted the agent/claude/phase5-public-cli-dedup-base-detection-s-2026-06-03-14-28 branch June 3, 2026 12:43
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