Skip to content

Commit

Permalink
fix(git): set gitAuthor before onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Sep 3, 2021
1 parent ec3b5a1 commit 31e1e4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/workers/repository/onboarding/branch/index.ts
Expand Up @@ -7,7 +7,7 @@ import {
} from '../../../../constants/error-messages';
import { logger } from '../../../../logger';
import { platform } from '../../../../platform';
import { checkoutBranch } from '../../../../util/git';
import { checkoutBranch, setGitAuthor } from '../../../../util/git';
import { extractAllDependencies } from '../../extract';
import { mergeRenovateConfig } from '../../init/merge';
import { isOnboarded, onboardingPrExists } from './check';
Expand All @@ -30,6 +30,8 @@ export async function checkOnboardingBranch(
throw new Error(REPOSITORY_FORKED);
}
logger.debug('Repo is not onboarded');
// global gitAuthor will need to be used
setGitAuthor(config.gitAuthor);
if (await onboardingPrExists(config)) {
logger.debug('Onboarding PR already exists');
const commit = await rebaseOnboardingBranch(config);
Expand Down

0 comments on commit 31e1e4d

Please sign in to comment.