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 <xiaolunwen@gmail.com>