mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
dca3418bbd
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
11 lines
384 B
TypeScript
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);
|
|
}
|