-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
CODEOWNERS trigger on PR update also activated by merge commit #34224
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
Comments
Exactly. So this is intended behaviour? The merge commit indeed touches the file. But the PR does not really change it. |
Yes. The last commit of this PR is a merge commit which contains the change of the file. But from the PR's changed files, the file is not changed. Maybe it should always check the changed files but not pushed commits. |
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Apr 28, 2025
) Fix go-gitea#34224 The previous implementation in go-gitea#33744 will get the pushed commits changed files. But it's not always right when push a merged commit. This PR reverted the logic in go-gitea#33744 and will always get the PR's changed files and get code owners.
lunny
added a commit
that referenced
this issue
Apr 29, 2025
…4304) Backport #34286 by @lunny Fix #34224 The previous implementation in #33744 will get the pushed commits changed files. But it's not always right when push a merged commit. This PR reverted the logic in #33744 and will always get the PR's changed files and get code owners. Co-authored-by: Lunny Xiao <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The recent change in behaviour introduced in #33744 / reported by #33490 is also triggered by files which are changed in a merge commit (update branch button in the PR) but not really touched by the code changes in the PR. This leads to quite some mail / reviewer spam in our environment.
Steps to reproduce:
Gitea Version
1.23.7
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?
Ubuntu installation
Database
None
The text was updated successfully, but these errors were encountered: