Skip to content

Commit

Permalink
fix: trim the suffix "-" from branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Nov 14, 2023
1 parent 7f0ec98 commit bdccee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/fix_redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *Controller) createFixRedirectPR(ctx context.Context, pkgName string, cf

pkgDir := filepath.Join("pkgs", filepath.FromSlash(redirect.NewPackageName))
oldPkgDir := filepath.Join("pkgs", filepath.FromSlash(pkgName))
branch := fmt.Sprintf("aqua-registry-updater-transfer-%s-", pkgName)
branch := fmt.Sprintf("aqua-registry-updater-transfer-%s", pkgName)
if err := c.exec(ctx, "ghcp", "commit",
"-r", fmt.Sprintf("%s/%s", c.param.RepoOwner, c.param.RepoName),
"-b", branch, "-m", prTitle,
Expand Down

0 comments on commit bdccee4

Please sign in to comment.