feat: allow user to specify their own branch name by lukevmorris · Pull Request #473 · depot/cli

Users have reported our migration branch name is running afoul of branch protection rules. Rather than try to construct a branch name that passes all possible rules, this PR instead allows the user to specify their own branch name in these cases, and returns meaningful messages for known error cases.

Note

Medium Risk
Adds a new branch_name field to the migration RPC and threads it through the CLI, which changes the client/server contract and could break compatibility if the backend isn’t updated in lockstep.

Overview
Adds support for overriding the temporary branch used by depot ci migrate secrets-and-vars via a new --branch flag.

Threads the provided branch name through the MigrationService.ImportSecretsAndVars request (new branch_name proto field) for both dry-run preview and actual import, and improves error reporting by surfacing Connect RPC error messages directly.

Written by Cursor Bugbot for commit b4786eb. This will update automatically on new commits. Configure here.