renovate/lib/modules/manager/git-submodules/artifacts.ts

17 lines
495 B
TypeScript

import { logger } from '../../../logger';
import type { UpdateArtifact, UpdateArtifactsResult } from '../types';
export default function updateArtifacts({
updatedDeps,
}: UpdateArtifact): UpdateArtifactsResult[] | null {
const res: UpdateArtifactsResult[] = [];
updatedDeps.forEach((dep) => {
// TODO: types (#22198)
logger.info(`Updating submodule ${dep.depName}`);
res.push({
file: { type: 'addition', path: dep.depName!, contents: '' },
});
});
return res;
}