aboutsummaryrefslogtreecommitdiffstats
path: root/services/pull/pull.go
diff options
context:
space:
mode:
authorVladimir Buyanov <81759784+cl-bvl@users.noreply.github.com>2023-06-08 11:56:05 +0300
committerGitHub <noreply@github.com>2023-06-08 16:56:05 +0800
commit3bdd48016f659c440d6e8bb57386fab7ad7b357b (patch)
tree7cf65016a18ce0e3d0e96e29838d40008f4306fe /services/pull/pull.go
parentb5a2bb9ab347fb5aaa6c6ca95dfd1b31751f1fba (diff)
downloadgitea-3bdd48016f659c440d6e8bb57386fab7ad7b357b.tar.gz
gitea-3bdd48016f659c440d6e8bb57386fab7ad7b357b.zip
Add codeowners feature (#24910)
Hello. This PR adds a github like configuration for the CODEOWNERS file. Resolves: #10161
Diffstat (limited to 'services/pull/pull.go')
-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