/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { BaseCommand } from "../../library/index.js"; /** * This command class is used to merge two branches based on the batch size provided. * It looks for the last common commit between two branches and computes the remaining commits to be merged. * Later, it creates a pull request based on the batch size passed. */ export default class MergeBranch extends BaseCommand { static readonly description = "Sync branches depending on the batch size passed"; static readonly state = "deprecated"; static readonly flags: { readonly pat: import("@oclif/core/interfaces").OptionFlag; readonly source: import("@oclif/core/interfaces").OptionFlag; readonly target: import("@oclif/core/interfaces").OptionFlag; readonly batchSize: import("@oclif/core/interfaces").OptionFlag; readonly remote: import("@oclif/core/interfaces").OptionFlag; readonly reviewers: import("@oclif/core/interfaces").OptionFlag; readonly createPr: import("@oclif/core/interfaces").BooleanFlag; readonly checkPr: import("@oclif/core/interfaces").BooleanFlag; readonly cleanup: import("@oclif/core/interfaces").BooleanFlag; }; /** * The branch that the command was run from. This is used to checkout the branch in the case of a failure, so the user * is on the starting branch. */ private initialBranch; /** * A list of local branches that should be deleted if the command fails. The local/remote booleans indicate whether * the branch should be cleaned up locally, remotely, or both. */ private readonly branchesToCleanup; private remote; run(): Promise; /** * This method is called when an unhandled exception is thrown, or when the command exits with an error code. if * possible, this code cleans up the temporary branches that were created. It cleans up both local and remote * branches. */ protected catch(err: Error & { exitCode?: number | undefined; }): Promise; private doCleanup; } //# sourceMappingURL=branches.d.ts.map