Expose branchFileChanges (updatedPackageFiles + updatedArtifacts) in the Renovate Report #44342
zeitlinger
started this conversation in
Suggest an Idea
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal
Add a report field that emits, per Renovate branch, the manifest writes and lockfile/artifact writes Renovate computed for that branch — path + content, keyed by
branchName. Roughly:{ "branchFileChanges": [ { "branchName": "renovate/lodash-4.x", "updatedPackageFiles": [{ "path": "package.json", "contents": "..." }], "updatedArtifacts": [{ "path": "package-lock.json", "contents": "..." }] } ] }Off by default. Enable via
--report-include-file-changes=trueon the CLI (or the equivalent config field).Why
Downstream tooling that inspects Renovate PRs wants to verify that a PR's actual head contents match what Renovate would have written. Without the report surface, the only current option is to run Renovate a second time against the PR base and diff — which is fragile, expensive, and produces false positives when transitive registry state drifts between the first and second run.
Emitting what Renovate already computed removes both problems.
Prior work
I've prototyped this as a patch on zeitlinger/renovate:minos-dump — commit
11d93c01f. Happy to open a PR if there's interest.Question
--dry-run=full(which today runs lockfile updaters) shouldn't be the mode this pairs with?Beta Was this translation helpful? Give feedback.
All reactions