Skip to content

Commit

Permalink
revert: Print name/mail length
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Jan 27, 2024
1 parent c9a37ad commit ce89141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/governctl/pr/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (opts *Merge) Run(ctx context.Context, args []string) error {

// Add commiter name
if opts.CommitterName != "" {
fmt.Printf("Name length: %d\n", len(opts.CommitterName))
cmd := exec.Command("git", "-C", opts.Repo, "config", "user.name", opts.CommitterName)
cmd.Stderr = log.G(ctx).WriterLevel(logrus.ErrorLevel)
cmd.Stdout = log.G(ctx).WriterLevel(logrus.DebugLevel)
Expand All @@ -217,6 +218,7 @@ func (opts *Merge) Run(ctx context.Context, args []string) error {

// Add commiter email
if opts.CommitterEmail != "" {
fmt.Printf("Mail length: %d\n", len(opts.CommitterEmail))
cmd := exec.Command("git", "-C", opts.Repo, "config", "user.email", opts.CommitterEmail)
cmd.Stderr = log.G(ctx).WriterLevel(logrus.ErrorLevel)
cmd.Stdout = log.G(ctx).WriterLevel(logrus.DebugLevel)
Expand Down

0 comments on commit ce89141

Please sign in to comment.