renovate/lib/modules/platform/commit.ts
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00

11 lines
384 B
TypeScript

import { commitFiles } from '../../util/git';
import type { CommitFilesConfig, CommitSha } from '../../util/git/types';
import { platform } from '.';
export function commitAndPush(
commitConfig: CommitFilesConfig
): Promise<CommitSha | null> {
return commitConfig.platformCommit && platform.commitFiles
? platform.commitFiles(commitConfig)
: commitFiles(commitConfig);
}