Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 2x 2x 2x 1x 2x 2x 2x 2x 2x 2x | import { loadConfiguration } from '../config.js';
import { runBumpBazelPin } from '../orchestrators/bump-bazel-pin.js';
import { GitCoreService } from '../services/gitcore-service.js';
import { NexusFetcher } from '../services/nexus-fetcher.js';
import { PrMetadataService } from '../services/pr-metadata.js';
import { createLogger, quietLogger } from '../utils/logger.js';
export type BumpBazelPinCommandOptions = {
pr: string;
dryRun?: boolean;
};
export async function bumpBazelPinCommand(opts: BumpBazelPinCommandOptions): Promise<void> {
const logger = createLogger();
const dryRun = Boolean(opts.dryRun);
if (dryRun) {
logger.warn('Dry-run mode');
}
const config = loadConfiguration();
const quiet = quietLogger(logger);
const prMeta = new PrMetadataService(quiet, config.sldsScsRepo, config.sldsScsGhHost);
const nexus = new NexusFetcher(quiet, config.nexusSldsScsBase);
const gitcore = new GitCoreService(logger, config.gitcoreHost);
await runBumpBazelPin({ pr: opts.pr, dryRun }, { config, logger, prMeta, nexus, gitcore });
}
|