gitea/services/pull
Lunny Xiao 78fbcf35ad
Fix push commits comments when changing the pull request target branch (#35386) (#35443)
Backport #35386 

When changing the pull request target branch, the pushed commits
comments will not be changed resulted the number are inconsistent
between commits tab number and the pushed commits comments number.

This PR will remove all the previous pushed commits comments and
calculate new comments when changing the target branch.

Before:

<img width="928" height="585" alt="image"

src="https://github.com/user-attachments/assets/35e4d31f-31a1-4d14-83b0-1786721ab0d9"
/>

After:
<img width="816" height="623" alt="image"

src="https://github.com/user-attachments/assets/24b6dafe-9238-4e7e-833d-68472457afab"
/>
2025-09-10 03:26:39 +07:00
..
check.go Start automerge check again after the conflict check and the schedule (#35002) 2025-07-10 02:37:15 +07:00
check_test.go Start automerge check again after the conflict check and the schedule (#35002) 2025-07-10 02:37:15 +07:00
comment.go Fix push commits comments when changing the pull request target branch (#35386) (#35443) 2025-09-10 03:26:39 +07:00
commit_status.go Fix required contexts and commit status matching bug (#34815) (#34829) 2025-06-24 07:15:25 +07:00
commit_status_test.go Fix required contexts and commit status matching bug (#34815) (#34829) 2025-06-24 07:15:25 +07:00
edits.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +07:00
lfs.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +07:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +07:00
merge.go Always use an empty line to separate the commit message and trailer (#34512) (#34578) 2025-06-02 15:59:10 +07:00
merge_ff_only.go Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
merge_merge.go Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
merge_prepare.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +07:00
merge_rebase.go Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
merge_squash.go Always use an empty line to separate the commit message and trailer (#34512) (#34578) 2025-06-02 15:59:10 +07:00
merge_test.go Always use an empty line to separate the commit message and trailer (#34512) (#34578) 2025-06-02 15:59:10 +07:00
patch.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +07:00
patch_unmerged.go Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
protected_branch.go Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 2025-03-15 19:48:59 +07:00
pull.go Fix push commits comments when changing the pull request target branch (#35386) (#35443) 2025-09-10 03:26:39 +07:00
pull_test.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +07:00
review.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
review_test.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-28 15:19:24 +07:00
reviewer.go Fix team permissions (#34827) (#34836) 2025-06-24 14:17:14 +07:00
reviewer_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +07:00
temp_repo.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +07:00
update.go Fix possible pull request broken when leave the page immediately after clicking the update button (#34509) (#34607) 2025-06-05 07:15:32 +07:00
update_rebase.go Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00