@fern-api/generator-cli 0.9.27 → 0.9.28

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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -41531,6 +41531,7 @@ async function pushSignedCommit({
41531
41531
  branch,
41532
41532
  force,
41533
41533
  rebaseOnConflict = false,
41534
+ author,
41534
41535
  logger
41535
41536
  }) {
41536
41537
  const tempRef = `refs/temp/fern-${Date.now()}`;
@@ -41545,12 +41546,18 @@ async function pushSignedCommit({
41545
41546
  await repository.pushObjectToRef(localHeadSha, tempRef);
41546
41547
  tempRefPushed = true;
41547
41548
  for (let attempt2 = 0; attempt2 < MAX_CONCURRENT_PUSH_RETRIES; attempt2++) {
41549
+ const commitAuthor = {
41550
+ name: author?.name ?? FERN_BOT_NAME2,
41551
+ email: author?.email ?? FERN_BOT_EMAIL2
41552
+ };
41548
41553
  const { data: signedCommit } = await octokit.git.createCommit({
41549
41554
  owner,
41550
41555
  repo,
41551
41556
  message,
41552
41557
  tree: treeSha,
41553
- parents
41558
+ parents,
41559
+ author: commitAuthor,
41560
+ committer: commitAuthor
41554
41561
  });
41555
41562
  const signedSha = signedCommit.sha;
41556
41563
  try {
@@ -41876,6 +41883,7 @@ var GithubStep = class extends BaseStep {
41876
41883
  repo,
41877
41884
  branch: prBranch,
41878
41885
  force: isUpdatingExistingPR,
41886
+ author: this.config.author,
41879
41887
  logger: this.logger
41880
41888
  });
41881
41889
  const pushedBranch = await repository.getCurrentBranch();
@@ -41998,6 +42006,7 @@ var GithubStep = class extends BaseStep {
41998
42006
  branch: baseBranch,
41999
42007
  force: false,
42000
42008
  rebaseOnConflict: true,
42009
+ author: this.config.author,
42001
42010
  logger: this.logger
42002
42011
  });
42003
42012
  const pushedBranch = await repository.getCurrentBranch();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/generator-cli",
3
- "version": "0.9.27",
3
+ "version": "0.9.28",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/fern-api/fern.git",