release-please 15.10.0 → 15.10.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,20 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [15.10.2](https://github.com/googleapis/release-please/compare/v15.10.1...v15.10.2) (2023-04-11)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **github-changelog-notes:** Prepend header to create parseable release notes ([#1912](https://github.com/googleapis/release-please/issues/1912)) ([3f53d40](https://github.com/googleapis/release-please/commit/3f53d40c8c3f927fffdf8973128e12450703a6e4))
|
|
13
|
+
|
|
14
|
+
## [15.10.1](https://github.com/googleapis/release-please/compare/v15.10.0...v15.10.1) (2023-04-10)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **xml:** Preserve trailing newline if the xml file had one ([#1911](https://github.com/googleapis/release-please/issues/1911)) ([b899da6](https://github.com/googleapis/release-please/commit/b899da6637a5152fc13be5b89688c5f70c85563d))
|
|
20
|
+
|
|
7
21
|
## [15.10.0](https://github.com/googleapis/release-please/compare/v15.9.3...v15.10.0) (2023-04-10)
|
|
8
22
|
|
|
9
23
|
|
|
@@ -19,7 +19,10 @@ class GitHubChangelogNotes {
|
|
|
19
19
|
this.github = github;
|
|
20
20
|
}
|
|
21
21
|
async buildNotes(_commits, options) {
|
|
22
|
-
|
|
22
|
+
const body = await this.github.generateReleaseNotes(options.currentTag, options.targetBranch, options.previousTag);
|
|
23
|
+
const date = new Date().toLocaleDateString('en-CA');
|
|
24
|
+
const header = `## ${options.version} (${date})`;
|
|
25
|
+
return `${header}\n\n${body}`;
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
exports.GitHubChangelogNotes = GitHubChangelogNotes;
|
|
@@ -28,7 +28,11 @@ class BaseXml {
|
|
|
28
28
|
const document = new dom.DOMParser().parseFromString(content);
|
|
29
29
|
const updated = this.updateDocument(document);
|
|
30
30
|
if (updated) {
|
|
31
|
-
|
|
31
|
+
const newContent = new dom.XMLSerializer().serializeToString(document);
|
|
32
|
+
if (content.endsWith('\n') && !newContent.endsWith('\n')) {
|
|
33
|
+
return `${newContent}\n`;
|
|
34
|
+
}
|
|
35
|
+
return newContent;
|
|
32
36
|
}
|
|
33
37
|
else {
|
|
34
38
|
return content;
|
package/package.json
CHANGED