Skip to content

Route the re-pull commit writers through repullTrailerLines #1972

Closed

Description

@neuromechanist

Found in the round-1 review of PR #1971 (Phase 7g, epic #1046). The re-pull trailer lines are defined once, by repullTrailerLines in shared/repull-squash.ts, and the Worker's squash message and the CLI's squash message use that definition.

Three commit writers still format the same two lines with their own template strings: src/lib/repull/execute/pull-request.ts (lines 369 and 370), src/lib/repull/execute/synthesize.ts (lines 462 and 463), and src/lib/repull/patch-turn.ts (lines 107 and 108). The release reads these trailers back from main through src/lib/repull/trailers.ts, so a writer whose format drifts from the definition would only be caught by that read-back, after the merge.

Route the three writers through repullTrailerLines, and add a test that pins each writer's trailer lines to that function's output. The change touches code outside Phase 7g, so it is filed here rather than changed in that PR.

Activity

  1. neuromechanist commented on Oct 29, 2026

    @neuromechanist
    ContributorAuthor

    Fixed by #1984 (round 1 review fixes for the upstream freshness epic), released in 0.10.26. The commit writers in src/lib/repull/execute/pull-request.ts, src/lib/repull/execute/synthesize.ts and src/lib/repull/patch-turn.ts now take their two trailer lines from repullTrailerLines, no hand-formatted Upstream-Snapshot: or Repull-Plan: template remains under src/lib/repull, and test/repull-trailers.unit.test.ts pins the writers' lines to that function's output. Checked on main at v0.10.26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions