mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 09:04:58 +00:00
[BUG] Use correct headcommitid
Regression of #2507, which switched the HEAD from `pr.GetGitRefName()` to `pr.HeadCommitID` but it had to be `prInfo.HeadCommitID`. Resolves #2656 I was able to reproduce this locally with _some_ pull requests, haven't been able to get a reproducer trough integration testing.
This commit is contained in:
parent
98f1fe7944
commit
a4cc37b46a
|
@ -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
|
// 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.
|
// 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue