fix: add index to back/frontport
Signed-off-by: jolheiser <john.olheiser@gmail.com>main v0.0.7
parent
fe0e2e5707
commit
190ea6c7f3
|
@ -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
|
||||
|
|
|
@ -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 == "" {
|
||||
|
|
Loading…
Reference in New Issue