release-please 17.10.3 → 17.10.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.
@@ -26,6 +26,7 @@ class DefaultChangelogNotes {
26
26
  this.mainTemplate = options.mainTemplate;
27
27
  }
28
28
  async buildNotes(commits, options) {
29
+ var _a;
29
30
  const context = {
30
31
  host: options.host || DEFAULT_HOST,
31
32
  owner: options.owner,
@@ -40,8 +41,11 @@ class DefaultChangelogNotes {
40
41
  config.types = options.changelogSections;
41
42
  }
42
43
  const preset = await presetFactory(config);
44
+ // Replace the default ", closes" keyword with ", refs" to prevent GitHub from
45
+ // automatically closing referenced issues when the release PR is merged.
43
46
  preset.writerOpts.commitPartial =
44
- this.commitPartial || preset.writerOpts.commitPartial;
47
+ this.commitPartial ||
48
+ ((_a = preset.writerOpts.commitPartial) === null || _a === void 0 ? void 0 : _a.replace(/,\s*closes/g, ', refs'));
45
49
  preset.writerOpts.headerPartial =
46
50
  this.headerPartial || preset.writerOpts.headerPartial;
47
51
  preset.writerOpts.mainTemplate =
@@ -14,4 +14,4 @@ export { Logger, setLogger } from './util/logger';
14
14
  export { GitHub } from './github';
15
15
  export declare const configSchema: any;
16
16
  export declare const manifestSchema: any;
17
- export declare const VERSION = "17.10.3";
17
+ export declare const VERSION = "17.10.4";
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
36
36
  exports.configSchema = require('../../schemas/config.json');
37
37
  exports.manifestSchema = require('../../schemas/manifest.json');
38
38
  // x-release-please-start-version
39
- exports.VERSION = '17.10.3';
39
+ exports.VERSION = '17.10.4';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "17.10.3",
3
+ "version": "17.10.4",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",