-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework breaking changes for new structure (#80907)
The structure of the breaking changes / migration guide was updated in #79162 to change the categories and split the breaking changes into different files. This PR amends the changelog generator code in line with this rework.
- Loading branch information
1 parent
7fd074d
commit 9326c7f
Showing
11 changed files
with
293 additions
and
121 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
39 changes: 39 additions & 0 deletions
39
build-tools-internal/src/main/resources/templates/breaking-changes-area.asciidoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[discrete] | ||
[[breaking_${majorMinor}_${breakingAreaAnchor}]] | ||
==== ${breakingArea} | ||
|
||
//NOTE: The notable-breaking-changes tagged regions are re-used in the | ||
//Installation and Upgrade Guide | ||
|
||
TIP: {ess-setting-change} | ||
|
||
<% | ||
[true, false].each { isNotable -> | ||
def breakingChanges = breakingEntriesByNotability.getOrDefault(isNotable, []) | ||
|
||
if (breakingChanges.isEmpty() == false) { | ||
if (isNotable) { | ||
/* No newline here, one will be added below */ | ||
print "// tag::notable-breaking-changes[]" | ||
} | ||
|
||
for (breaking in breakingChanges) { %> | ||
[[${ breaking.anchor }]] | ||
. ${breaking.title}${ breaking.essSettingChange ? ' {ess-icon}' : '' } | ||
[%collapsible] | ||
==== | ||
*Details* + | ||
${breaking.details.trim()} | ||
*Impact* + | ||
${breaking.impact.trim()} | ||
==== | ||
<% | ||
} | ||
|
||
if (isNotable) { | ||
print "// end::notable-breaking-changes[]\n" | ||
} | ||
} | ||
} | ||
%> |
Oops, something went wrong.