diff --git a/cmd/backport.go b/cmd/backport.go index 5e843c4..cc462f3 100644 --- a/cmd/backport.go +++ b/cmd/backport.go @@ -85,7 +85,7 @@ func (h *Handler) Backport() *ffcli.Command { index = m[1] } - branch := fmt.Sprintf("backport-%s", index) + branch := fmt.Sprintf("backport-%s-%s", to, index) base := fmt.Sprintf("upstream/release/v1.%s", to) if err := h.Branch().ParseAndRun(ctx, []string{"--base", base, branch}); err != nil { return err diff --git a/cmd/frontport.go b/cmd/frontport.go index c096fd8..8a8554a 100644 --- a/cmd/frontport.go +++ b/cmd/frontport.go @@ -70,7 +70,7 @@ func (h *Handler) Frontport() *ffcli.Command { index = m[1] } - branch := fmt.Sprintf("frontport-%s", index) + branch := fmt.Sprintf("frontport-%s-%s", from, index) base := *toFlag if base == "" {