diff --git a/pkg/cibot/pullrequest.go b/pkg/cibot/pullrequest.go index 6a79ba9e8169668ed528ddf937be2d68869c6da6..c9d8c262faec4e4bdd6518aebd8793c0c61fc2a7 100644 --- a/pkg/cibot/pullrequest.go +++ b/pkg/cibot/pullrequest.go @@ -135,6 +135,15 @@ func (s *Server) HandlePullRequestEvent(actionDesc string, event *gitee.PullRequ if err != nil { glog.Info(err) } + // Add retest comment for update push. + retest_comment := "/retest" + cBody := gitee.PullRequestCommentPostParam{} + cBody.AccessToken = s.Config.GiteeToken + cBody.Body = fmt.Sprintf(retest_comment) + _, _, err = s.GiteeClient.PullRequestsApi.PostV5ReposOwnerRepoPullsNumberComments(s.Context, owner, repo, number, cBody) + if err != nil{ + glog.Info("Add retest comment failed. err: %v", err) + } // remove lgtm if changes happen /*if s.hasLgtmLabel(pr.Labels) { err = s.CheckLgtmByPullRequestUpdate(event)