summaryrefslogtreecommitdiffstats
path: root/services/pull
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull')
-rw-r--r--services/pull/pull.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/pull/pull.go b/services/pull/pull.go
index 8f2befa8ff..f44e690ab7 100644
--- a/services/pull/pull.go
+++ b/services/pull/pull.go
@@ -123,6 +123,13 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, pull *issu
}
_, _ = issue_service.CreateComment(ctx, ops)
+
+ if !pr.IsWorkInProgress() {
+ if err := issues_model.PullRequestCodeOwnersReview(ctx, pull, pr); err != nil {
+ return err
+ }
+ }
+
}
return nil