release-please 14.2.1 → 14.2.4
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,27 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [14.2.4](https://github.com/googleapis/release-please/compare/v14.2.3...v14.2.4) (2022-08-30)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* prepend release notes to non-conforming changelog ([#1615](https://github.com/googleapis/release-please/issues/1615)) ([7d6c4c5](https://github.com/googleapis/release-please/commit/7d6c4c5aabd39436762253b019e17a5922ffa560))
|
|
13
|
+
|
|
14
|
+
## [14.2.3](https://github.com/googleapis/release-please/compare/v14.2.2...v14.2.3) (2022-08-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* dont filter out root package in node workspace candidate filtering ([#1606](https://github.com/googleapis/release-please/issues/1606)) ([c8560d5](https://github.com/googleapis/release-please/commit/c8560d519db50690ac6dd3409dd2b3560f4c12a5))
|
|
20
|
+
|
|
21
|
+
## [14.2.2](https://github.com/googleapis/release-please/compare/v14.2.1...v14.2.2) (2022-08-30)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* look at merged_at field to determine merge status ([#1609](https://github.com/googleapis/release-please/issues/1609)) ([1c9beac](https://github.com/googleapis/release-please/commit/1c9beacb49d82f2aa594ef0511fa8d9cfd743b11))
|
|
27
|
+
|
|
7
28
|
## [14.2.1](https://github.com/googleapis/release-please/compare/v14.2.0...v14.2.1) (2022-08-25)
|
|
8
29
|
|
|
9
30
|
|
package/build/src/github.js
CHANGED
|
@@ -638,8 +638,8 @@ class GitHub {
|
|
|
638
638
|
})) {
|
|
639
639
|
for (const pull of pulls) {
|
|
640
640
|
// The REST API does not have an option for "merged"
|
|
641
|
-
// pull requests - they are closed with a `
|
|
642
|
-
if (status !== 'MERGED' || pull.
|
|
641
|
+
// pull requests - they are closed with a `merged_at` timestamp
|
|
642
|
+
if (status !== 'MERGED' || pull.merged_at) {
|
|
643
643
|
results += 1;
|
|
644
644
|
yield {
|
|
645
645
|
headBranchName: pull.head.ref,
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.NodeWorkspace = void 0;
|
|
17
17
|
const package_graph_1 = require("@lerna/package-graph");
|
|
18
18
|
const package_1 = require("@lerna/package");
|
|
19
|
-
const manifest_1 = require("../manifest");
|
|
20
19
|
const version_1 = require("../version");
|
|
21
20
|
const raw_content_1 = require("../updaters/raw-content");
|
|
22
21
|
const pull_request_title_1 = require("../util/pull-request-title");
|
|
@@ -228,8 +227,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
228
227
|
return graph;
|
|
229
228
|
}
|
|
230
229
|
inScope(candidate) {
|
|
231
|
-
return
|
|
232
|
-
candidate.path !== manifest_1.ROOT_PROJECT_PATH);
|
|
230
|
+
return candidate.config.releaseType === 'node';
|
|
233
231
|
}
|
|
234
232
|
packageNameFromPackage(pkg) {
|
|
235
233
|
return pkg.name;
|
|
@@ -28,7 +28,12 @@ class Changelog extends default_1.DefaultUpdater {
|
|
|
28
28
|
// Handle both H2 (features/BREAKING CHANGES) and H3 (fixes).
|
|
29
29
|
const lastEntryIndex = content.search(this.versionHeaderRegex);
|
|
30
30
|
if (lastEntryIndex === -1) {
|
|
31
|
-
|
|
31
|
+
if (content) {
|
|
32
|
+
return `${this.header()}\n${this.changelogEntry}\n\n${adjustHeaders(content).trim()}\n`;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
return `${this.header()}\n${this.changelogEntry}\n`;
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
else {
|
|
34
39
|
const before = content.slice(0, lastEntryIndex);
|
|
@@ -43,4 +48,8 @@ class Changelog extends default_1.DefaultUpdater {
|
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
exports.Changelog = Changelog;
|
|
51
|
+
// Helper to increase markdown H1 headers to H2
|
|
52
|
+
function adjustHeaders(content) {
|
|
53
|
+
return content.replace(/^#(\s)/gm, '##$1');
|
|
54
|
+
}
|
|
46
55
|
//# sourceMappingURL=changelog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../../src/updaters/changelog.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uCAAwD;AAOxD,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAEvD,MAAa,SAAU,SAAQ,wBAAc;IAI3C,YAAY,OAAyB;;QACnC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,kBAAkB,GAAG,IAAI,MAAM,CAClC,MAAA,OAAO,CAAC,kBAAkB,mCAAI,4BAA4B,EAC1D,GAAG,CACJ,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,OAA2B;QACvC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QACxB,6DAA6D;QAC7D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC/D,IAAI,cAAc,KAAK,CAAC,CAAC,EAAE;YACzB,OAAO,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,cAAc,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../../src/updaters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