diff --git a/models/issues/pull.go b/models/issues/pull.go index f60b1c5e7a..c450b66a51 100644 --- a/models/issues/pull.go +++ b/models/issues/pull.go @@ -932,7 +932,7 @@ func PullRequestCodeOwnersReview(ctx context.Context, pull *Issue, pr *PullReque } // Use the merge base as the base instead of the main branch to avoid problems // if the pull request is out of date with the base branch. - changedFiles, err := repo.GetFilesChangedBetween(prInfo.MergeBase, pr.HeadCommitID) + changedFiles, err := repo.GetFilesChangedBetween(prInfo.MergeBase, prInfo.HeadCommitID) if err != nil { return err }