Skip to content

Commit

Permalink
feat(cherrypicker): add target branch info in comment when pull reque…
Browse files Browse the repository at this point in the history
…st created (#1052)
  • Loading branch information
wuhuizuo authored Oct 18, 2022
1 parent 9f441f2 commit 1a397d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/externalplugins/cherrypicker/cherrypicker.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ func (s *Server) handle(logger *logrus.Entry, requestor string,
return utilerrors.NewAggregate([]error{err, s.createComment(logger, org, repo, num, comment, resp)})
}
*logger = *logger.WithField("new_pull_request_number", createdNum)
resp := fmt.Sprintf("new pull request created: #%d.", createdNum)
logger.Info("new pull request created")
resp := fmt.Sprintf("new pull request created to branch `%s`: #%d.", targetBranch, createdNum)
logger.Infof("new pull request created to branch `%s`: #%d.", targetBranch, createdNum)
if err := s.createComment(logger, org, repo, num, comment, resp); err != nil {
return fmt.Errorf("failed to create comment: %w", err)
}
Expand Down

0 comments on commit 1a397d5

Please sign in to comment.