release-please 14.17.1 → 14.17.3
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,20 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [14.17.3](https://github.com/googleapis/release-please/compare/v14.17.2...v14.17.3) (2022-11-26)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Handle incrementing ruby patch versions larger than 1 digit ([#1762](https://github.com/googleapis/release-please/issues/1762)) ([7ad300e](https://github.com/googleapis/release-please/commit/7ad300e97a79acf4c3dbe0b9af8586eb32ab81cf))
|
|
13
|
+
|
|
14
|
+
## [14.17.2](https://github.com/googleapis/release-please/compare/v14.17.1...v14.17.2) (2022-11-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* 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))
|
|
20
|
+
|
|
7
21
|
## [14.17.1](https://github.com/googleapis/release-please/compare/v14.17.0...v14.17.1) (2022-11-22)
|
|
8
22
|
|
|
9
23
|
|
|
@@ -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
|
}
|
|
@@ -25,7 +25,7 @@ class VersionRB extends default_1.DefaultUpdater {
|
|
|
25
25
|
* @returns {string} The updated content
|
|
26
26
|
*/
|
|
27
27
|
updateContent(content) {
|
|
28
|
-
return content.replace(/(["'])[0-9]+\.[0-9]+\.[0-9](-\w+)?["']/, `$1${this.version}$1`);
|
|
28
|
+
return content.replace(/(["'])[0-9]+\.[0-9]+\.[0-9]+(-\w+)?["']/, `$1${this.version}$1`);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
exports.VersionRB = VersionRB;
|
package/package.json
CHANGED