You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/pull
Lunny Xiao 85f31eb643
Fix codeowner detected diff base branch to mergebase (#29783) (#29807)
Fix #29763
Backport #29783 

This PR fixes 2 problems with CodeOwner in the pull request.
- Don't use the pull request base branch but merge-base as a diff base
to detect the code owner.
- CodeOwner detection in fork repositories will be disabled because
almost all the fork repositories will not change CODEOWNERS files but it
should not be used on fork repositories' pull requests.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
11 months ago
..
check.go Fix codeowner detected diff base branch to mergebase (#29783) (#29807) 11 months ago
check_test.go Add context parameter to some database functions (#26055) 2 years ago
comment.go Delete `issue_service.CreateComment` (#26298) 2 years ago
commit_status.go Fix commit_status problem when testing (#29672) (#29675) 12 months ago
commit_status_test.go Fixing the issue when status check per rule matches multiple actions (#29631) (#29655) 12 months ago
edits.go Implement FSFE REUSE for golang files (#21840) 2 years ago
lfs.go Refactor and tidy-up the merge/update branch code (#22568) 2 years ago
main_test.go move repository deletion to service layer (#26948) 1 year ago
merge.go Fix poster is not loaded in get default merge message (#27657) (#27666) 1 year ago
merge_merge.go Refactor and tidy-up the merge/update branch code (#22568) 2 years ago
merge_prepare.go Refactor merge/update git command calls (#23366) 2 years ago
merge_rebase.go Merge message template support for rebase without merge commit (#22669) 2 years ago
merge_squash.go Improve squash merge commit author and co-author with private emails (#22977) 2 years ago
merge_test.go Support template for merge message description (#22248) 2 years ago
patch.go Add transaction when creating pull request created dirty data (#26259) 2 years ago
patch_unmerged.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pull.go Fix codeowner detected diff base branch to mergebase (#29783) (#29807) 11 months ago
pull_test.go Support template for merge message description (#22248) 2 years ago
review.go More `db.DefaultContext` refactor (#27265) (#27347) 1 year ago
temp_repo.go Sync branches into databases (#22743) 2 years ago
update.go Sync branches into databases (#22743) 2 years ago
update_rebase.go Refactor and tidy-up the merge/update branch code (#22568) 2 years ago