gitea/services/agit
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 +02:00
..
agit.go Fix push commits comments when changing the pull request target branch (#35386) (#35443) 2025-09-10 03:26:39 +02:00
agit_test.go Support base64-encoded agit push options (#35037) (#35041) 2025-07-10 18:56:43 +00:00