fix(release): filter changelogs to lane-specific paths in _release-pr#1729
Merged
Merged
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
format_login_release-prcalledgit 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..HEADcaptured 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.LOG_PATHSarray to each lane'scaseblock scoped to the files that ship in that artifact-- "${LOG_PATHS[@]}"togit loginsideformat_logso only relevant commits appear in the changelog and PR bodycrates/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/+ Rust deps (buzz-core,buzz-persona,buzz-sdk,buzz-agent)mobile/only (Flutter — no Rust crate deps)To fix PR #1728, re-run
just release-relay 0.2.0on main after this merges — it will regenerate the changelog and update the existing PR in place.