From 1a397d58e426ba3022e36c7ab97f058e7b742c15 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Tue, 18 Oct 2022 18:01:54 +0800 Subject: [PATCH] feat(cherrypicker): add target branch info in comment when pull request created (#1052) --- internal/pkg/externalplugins/cherrypicker/cherrypicker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/externalplugins/cherrypicker/cherrypicker.go b/internal/pkg/externalplugins/cherrypicker/cherrypicker.go index 31ec01d72..381fa33be 100644 --- a/internal/pkg/externalplugins/cherrypicker/cherrypicker.go +++ b/internal/pkg/externalplugins/cherrypicker/cherrypicker.go @@ -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) }