diff options
author | Vladimir Buyanov <81759784+cl-bvl@users.noreply.github.com> | 2023-06-08 11:56:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 16:56:05 +0800 |
commit | 3bdd48016f659c440d6e8bb57386fab7ad7b357b (patch) | |
tree | 7cf65016a18ce0e3d0e96e29838d40008f4306fe /services/pull/pull.go | |
parent | b5a2bb9ab347fb5aaa6c6ca95dfd1b31751f1fba (diff) | |
download | gitea-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.go | 7 |
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 |