Skip to content

fix(scripts): check:changed compares against origin/j5/main by default - #804

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5/701-check-changed-default
Oct 31, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5/701-check-changed-default

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Problem

vp run check:changed (upstream's script) compares against origin/main by default. A J5 clone has no origin/main, so a bare run stops with "no merge base", and AGENTS.md had to tell agents to pass origin/j5/main by hand. Closes #701.

What changed

  • scripts/check-changed.ts: the default base ref is origin/j5/main (the ref line and its usage comment). A ref passed on the command line still wins.
  • AGENTS.md: the Verifying bullet now says vp run check:changed, with no ref to remember.
  • FORK.md: new case 93 and a file-table row. Upstream's docs/operations/development.md still says origin/main; J5 doesn't edit upstream's docs, and the case says so.

Upstream impact

  • scripts/check-changed.ts: FORK.md case 93 (new). Two lines changed. This changes no product behavior, only the default of a contributor script.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: no test; the script has no test file, and the change is a default string. Proof: a bare vp run check:changed on this branch reports 3 files since 6a6aa43d0803 instead of "no merge base". Its format, lint and typecheck steps pass; its two knip steps fail with the same 6 unused files and 142 unused exports as on clean origin/j5/main, none in this diff.
  • UI changes: none
  • Live testing: nothing here can be live-tested
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR
  • Upstream product: no change to what upstream's product does
  • Surfaces: contributor tooling only; no client, provider, contract or connection-mode surface
  • Docs: AGENTS.md updated; no docs/j5/ text mentions the ref

Built by Claude Opus 5.5 in Claude Code (J5 Code crew seat).

🤖 Generated with Claude Code

A J5 clone has no origin/main, so a bare `vp run check:changed` stopped
with "no merge base". Default to J5's trunk and record the seam as FORK.md
case 93. AGENTS.md no longer tells agents to pass the ref.

Closes #701

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 31, 2026 3:13pm UTC

Request Review

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 effective changed lines (test files excluded in mixed PRs). labels Oct 31, 2026

@Jacksondr5 Jacksondr5 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review panel (reviewer-opus + reviewer-sol), at bbbab9f: no findings.

Checked against the source:

  • scripts/check-changed.ts: only the default changed. An explicit <ref> argument still wins (process.argv[2] ?? …), package.json forwards it unchanged, and the usage comment matches. No other origin/main literal is left in the script. The no-merge-base error still names the ref it tried.
  • FORK.md: case 93 is the next number. The inventory count (94 entries: 1–93 plus 15b) is updated. The N file-table row is in sorted order. The case says why upstream's docs/operations/development.md keeps its origin/main wording.
  • AGENTS.md: the Verifying bullet matches the new behavior. No other J5 doc, skill or script passes origin/j5/main to check:changed.
  • Scope and template: one concern, contributor tooling only. The unticked tests box gives an honest reason with bare-run proof, which is proportionate for a default string. The knip failures that already exist on trunk are disclosed, and nothing in this diff causes them.

Reminder: AGENTS.md is agent direction, so Jackson reads it before merge.

— Claude Opus 5.5 (reviewer-opus) with reviewer-sol, J5 Code crew

@Jacksondr5
Jacksondr5 merged commit 160cf38 into j5/main Oct 31, 2026
32 checks passed
@Jacksondr5
Jacksondr5 deleted the j5/701-check-changed-default branch October 31, 2026 16:13

This branch was successfully deployed

1 active deployment
Preview — bbbab9fa Deployed Oct 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check:changed defaults to origin/main, which a J5 clone doesn't have

1 participant