release-please 14.17.1 → 14.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [14.17.2](https://github.com/googleapis/release-please/compare/v14.17.1...v14.17.2) (2022-11-22)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Handle issue links in BREAKING_CHANGE notes section ([#1757](https://github.com/googleapis/release-please/issues/1757)) ([cd8c04b](https://github.com/googleapis/release-please/commit/cd8c04b4d7a67116b31baff60279fa6d719c73a0))
|
|
13
|
+
|
|
7
14
|
## [14.17.1](https://github.com/googleapis/release-please/compare/v14.17.0...v14.17.1) (2022-11-22)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -47,12 +47,15 @@ class DefaultChangelogNotes {
|
|
|
47
47
|
preset.writerOpts.mainTemplate =
|
|
48
48
|
this.mainTemplate || preset.writerOpts.mainTemplate;
|
|
49
49
|
const changelogCommits = commits.map(commit => {
|
|
50
|
+
const notes = commit.notes
|
|
51
|
+
.filter(note => note.title === 'BREAKING CHANGE')
|
|
52
|
+
.map(note => replaceIssueLink(note, context.host, context.owner, context.repository));
|
|
50
53
|
return {
|
|
51
54
|
body: '',
|
|
52
55
|
subject: htmlEscape(commit.bareMessage),
|
|
53
56
|
type: commit.type,
|
|
54
57
|
scope: commit.scope,
|
|
55
|
-
notes
|
|
58
|
+
notes,
|
|
56
59
|
references: commit.references,
|
|
57
60
|
mentions: [],
|
|
58
61
|
merge: null,
|
|
@@ -71,6 +74,10 @@ class DefaultChangelogNotes {
|
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
exports.DefaultChangelogNotes = DefaultChangelogNotes;
|
|
77
|
+
function replaceIssueLink(note, host, owner, repo) {
|
|
78
|
+
note.text = note.text.replace(/\(#(\d+)\)/, `([#$1](${host}/${owner}/${repo}/issues/$1))`);
|
|
79
|
+
return note;
|
|
80
|
+
}
|
|
74
81
|
function htmlEscape(message) {
|
|
75
82
|
return message.replace('<', '<').replace('>', '>');
|
|
76
83
|
}
|
package/package.json
CHANGED