-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codeowner change detection doesn't work for outdated branches #28135
Comments
@cl-bvl I wonder if this intentional behaviour or should the list of files be computed from the actual diff? |
Is there anything new on this? |
owners of files unrelated to the PR are notified, please consider fixing |
Caused by how list of changed files is computed: between base branch and pr branch changedFiles, err := repo.GetFilesChangedBetween(git.BranchPrefix+pr.BaseBranch, pr.GetGitRefName()) here: same in main: Line 925 in 0900c15
probably |
This has been resolved by #29783 |
Description
If the branch of a pull request is behind its target branch, any changes from missing commits on the target branch will also trigger their associated rules.
The codeowner detection should rather be based on the actual diff output that is shown in the pull request page.
Gitea Version
1.21.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Binary started via systemd behind a caddy reverse proxy.
Database
None
The text was updated successfully, but these errors were encountered: