release-please 17.5.0 → 17.5.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.
@@ -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.5.0";
17
+ export declare const VERSION = "17.5.2";
@@ -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.5.0';
39
+ exports.VERSION = '17.5.2';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -71,8 +71,12 @@ class LocalGitHub {
71
71
  logger.info(`Using existing local repository at ${repoDir}...`);
72
72
  }
73
73
  const branch = gitHubApi.repository.defaultBranch;
74
- logger.debug('Executing: git fetch origin');
75
- await execFile('git', ['fetch', 'origin'], { cwd: repoDir });
74
+ const fetchArgs = ['fetch', 'origin'];
75
+ if (options.cloneDepth) {
76
+ fetchArgs.push('--depth', options.cloneDepth.toString());
77
+ }
78
+ logger.debug(`Executing: git ${fetchArgs.join(' ')}`);
79
+ await execFile('git', fetchArgs, { cwd: repoDir });
76
80
  logger.debug(`Executing: git checkout ${branch}`);
77
81
  await execFile('git', ['checkout', branch], { cwd: repoDir });
78
82
  logger.debug(`Executing: git reset --hard origin/${branch}`);
@@ -564,7 +568,9 @@ class LocalGitHub {
564
568
  await fs.promises.writeFile(msgFile, message);
565
569
  await execFile('git', ['add', '.'], { cwd: this.cloneDir });
566
570
  try {
567
- await execFile('git', ['commit', '-F', msgFile], { cwd: this.cloneDir });
571
+ await execFile('git', ['commit', '--no-verify', '-F', msgFile], {
572
+ cwd: this.cloneDir,
573
+ });
568
574
  }
569
575
  catch (err) {
570
576
  const error = err;
@@ -579,7 +585,7 @@ class LocalGitHub {
579
585
  await fs.promises.unlink(msgFile).catch(() => { });
580
586
  }
581
587
  // Push transit
582
- await execFile('git', ['push', '-f', 'origin', branch], {
588
+ await execFile('git', ['push', '--no-verify', '-f', 'origin', branch], {
583
589
  cwd: this.cloneDir,
584
590
  });
585
591
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "17.5.0",
3
+ "version": "17.5.2",
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",