Skip to content

fix(release): filter changelogs to lane-specific paths in _release-pr#1729

Merged
wpfleger96 merged 1 commit into
mainfrom
worktree-wpfleger-release-changelog-path-filter
Jul 10, 2026
Merged

fix(release): filter changelogs to lane-specific paths in _release-pr#1729
wpfleger96 merged 1 commit into
mainfrom
worktree-wpfleger-release-changelog-path-filter

Conversation

@wpfleger96

Copy link
Copy Markdown
Collaborator

format_log in _release-pr called git log <range> with no path filter, so release changelogs listed every commit across the monorepo since the last lane tag.

For the relay lane specifically, relay-v0.1.1..HEAD captured 327 commits — desktop, mobile, and unrelated Rust crates — instead of the ~35 commits that actually touched relay code. The same bug affected the desktop and mobile lanes.

  • Added a LOG_PATHS array to each lane's case block scoped to the files that ship in that artifact
  • Passed -- "${LOG_PATHS[@]}" to git log inside format_log so only relevant commits appear in the changelog and PR body
  • Relay scope: crates/buzz-relay/ + compiled-in deps (buzz-core, buzz-db, buzz-auth, buzz-pubsub, buzz-search, buzz-audit, buzz-media, buzz-sdk, buzz-workflow, buzz-conformance) + migrations/
  • Desktop scope: desktop/ + Rust deps (buzz-core, buzz-persona, buzz-sdk, buzz-agent)
  • Mobile scope: mobile/ only (Flutter — no Rust crate deps)

To fix PR #1728, re-run just release-relay 0.2.0 on main after this merges — it will regenerate the changelog and update the existing PR in place.

Release PR changelogs were listing every commit in the monorepo since
the last lane tag. `format_log` ran `git log <range>` with no path
filter, so e.g. `relay-v0.1.1..HEAD` captured 327 commits across
desktop, mobile, and all crates rather than the ~35 touching relay code.

Adds a `LOG_PATHS` array to each lane's `case` block and passes it as
a `-- <paths>` filter to `git log` in `format_log`. Each lane's scope:
- relay: buzz-relay + its compiled deps (buzz-core, buzz-db, buzz-auth,
  buzz-pubsub, buzz-search, buzz-audit, buzz-media, buzz-sdk,
  buzz-workflow, buzz-conformance) + migrations/
- desktop: desktop/ + its Rust deps (buzz-core, buzz-persona, buzz-sdk,
  buzz-agent)
- mobile: mobile/ only (no Rust crate deps)
@wpfleger96 wpfleger96 marked this pull request as ready for review July 10, 2026 19:54
@wpfleger96 wpfleger96 requested a review from a team as a code owner July 10, 2026 19:54
@wpfleger96 wpfleger96 merged commit a7eca42 into main Jul 10, 2026
18 checks passed
@wpfleger96 wpfleger96 deleted the worktree-wpfleger-release-changelog-path-filter branch July 10, 2026 19:55
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