Include changed files in report #36558
Replies: 2 comments
|
The As far as I can tell, making this change would also make it straightforward to populate this data available in |
|
I have a related use case for this report: testing shared Renovate presets and custom managers in CI. |
Uh oh!
There was an error while loading. Please reload this page.
Tell us more.
What I would like to be able to do is make changes to a Renovate config and see what those changes would do before I merge those changes to the default branch.
The things that I want to check before merging the config changes are:
postUpgradeTasksand the correspondingfileFilterscorrectly).In #22264 (reply in thread), I mentioned that most of this can be achieved by manually checking out the repository on the branch that you want to check the Renovate config on and using these settings:
dry-run=fullplatform=local(except for Errors are thrown when using platform=local #36538)LOG_LEVEL=debugUsing that combination of settings, you can dig through the log file and find out what will happen. The downside is that the logs are huge, so finding the information that you want is difficult, time consuming, and cannot be parsed into a readable format.
I recently discovered the
reportTypesetting and, despite the fact that it's experimental, I think that the report is perfect for this scenario.The report currently includes:
The only thing missing from the report is the files that will be changed on each branch. If the report included that information, then point 4 can be checked, and then there is a complete solution for checking the Renovate config changes before merging to the default branch. The report can be saved to a JSON file, which means I can perform any custom parsing or transformations myself instead of having to get Renovate to produce a nicely formatted report (for example, a Markdown file is what I would like to create).
Here's an example of what the report file currently looks like (with some irrelevant bits removed for brevity):
{ "problems": [], "repositories": { "local": { "branches": [ { "branchName": "renovate/all", "prNo": null, "prTitle": "Update all dependencies", "result": "pr-created", "upgrades": [ { "datasource": "dotnet-version", "depName": "dotnet-sdk", "displayPending": "", "fixedVersion": "9.0.203", "currentVersion": "9.0.203", "currentValue": "9.0.203", "newValue": "9.0.301", "newVersion": "9.0.301", "packageFile": "global.json", "updateType": "patch", "packageName": "dotnet-sdk" } ] } ] } } }And this is what I would like to add to the report:
{ "problems": [], "repositories": { "local": { "branches": [ { "branchName": "renovate/all", "prNo": null, "prTitle": "Update all dependencies", "result": "pr-created", + "files": [ + { + "path": "global.json", + "type": "addition" + } + ], "upgrades": [ { "datasource": "dotnet-version", "depName": "dotnet-sdk", "displayPending": "", "fixedVersion": "9.0.203", "currentVersion": "9.0.203", "currentValue": "9.0.203", "newValue": "9.0.301", "newVersion": "9.0.301", "packageFile": "global.json", "updateType": "patch", "packageName": "dotnet-sdk" } ] } ] } } }All reactions