From 7da2a329036f3cf619bda2479478f571f4a2a382 Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Tue, 20 Feb 2024 19:54:42 +0100 Subject: [PATCH 1/2] tools: make dependency diff report foldable --- WordPress/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WordPress/build.gradle b/WordPress/build.gradle index 36e0ad7a0637..efdf9fea95e6 100644 --- a/WordPress/build.gradle +++ b/WordPress/build.gradle @@ -642,10 +642,16 @@ tasks.register("dependencyTreeDiffCommentToGitHub", ViolationCommentsToGitHubTas commentTemplate = """ ### The PR caused the following dependency changes: +
expand +

+ ```diff {{{violation.message}}} ``` +

+
+ *Please review and act accordingly* """ violations = [ From 1ef90d749a9dbae5dce5514afb1c0033908507ae Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Tue, 20 Feb 2024 20:03:47 +0100 Subject: [PATCH 2/2] tools: improve styling of dependency diff comment --- WordPress/build.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WordPress/build.gradle b/WordPress/build.gradle index efdf9fea95e6..1a7c673ac696 100644 --- a/WordPress/build.gradle +++ b/WordPress/build.gradle @@ -640,9 +640,7 @@ tasks.register("dependencyTreeDiffCommentToGitHub", ViolationCommentsToGitHubTas commentOnlyChangedFiles = false minSeverity = SEVERITY.INFO commentTemplate = """ -### The PR caused the following dependency changes: - -
expand +
The PR caused some dependency changes (expand to see details)

```diff