gitea/services
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
..
actions Fix token lifetime, closes #35230 (#35271) (#35281) 2025-08-14 14:52:09 -07:00
agit Fix push commits comments when changing the pull request target branch (#35386) (#35443) 2025-09-10 03:26:39 +02:00
asymkey Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
attachment Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
auth Fix last admin check when syncing users (#34649) (#34673) 2025-06-09 15:18:44 -07:00
automerge Start automerge check again after the conflict check and the schedule (#35002) 2025-07-10 02:37:15 +00:00
automergequeue Start automerge check again after the conflict check and the schedule (#35002) 2025-07-10 02:37:15 +00:00
context Fix git graph page (#34948) (#34949) 2025-07-04 15:33:17 +00:00
contexttest Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +08:00
convert Fix API response for swagger spec (#35029) 2025-07-10 15:27:34 +08:00
cron Fix a bug where lfs gc never worked. (#35198) (#35255) 2025-08-12 10:57:50 +03:00
doctor Fix doctor deleting orphaned issues attachments (#34142) (#34571) 2025-06-03 07:01:09 +00:00
externalaccount Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
feed Fix notify watch failure when the content is too long (#34233) 2025-04-20 02:49:57 +00:00
forms Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
git Fix GetUsersByEmails (#34643) (#34646) 2025-06-08 10:40:58 +08:00
gitdiff Don't use full-file highlight when there is a git diff textconv (#35114) (#35119) 2025-07-18 13:52:41 +00:00
indexer Update issue indexer after merging a PR (#30715) 2024-05-08 14:45:15 +00:00
issue Reload issue when sending webhook to make num comments is right. (#35243) (#35248) 2025-08-11 10:12:47 -07:00
lfs Fix LFS range size header response (#35277) (#35293) 2025-08-17 15:59:03 +03:00
mailer Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
markup Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
migrations Fix GitHub release assets URL validation (#35287) (#35290) 2025-08-15 19:43:59 -07:00
mirror Only git operations should update `last changed` of a repository (#34388) (#34427) 2025-05-11 23:23:12 +02:00
notify Don't send trigger for a pending review's comment create/update/delete (#34928) (#34939) 2025-07-03 03:01:17 +00:00
oauth2_provider Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
org Fix remove org user failure on mssql (#34449) (#34453) 2025-05-13 13:28:26 -07:00
packages when using rules to delete packages, remove unclean bugs (#34632) (#34761) 2025-06-18 06:18:55 +00:00
projects Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
pull Fix push commits comments when changing the pull request target branch (#35386) (#35443) 2025-09-10 03:26:39 +02:00
release Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repository Fix various bugs (1.24) (#35186) 2025-07-31 12:04:47 +08:00
secrets Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00
task Fix bug when migrating repository (#34182) 2025-04-14 04:48:03 +00:00
uinotification Penultimate round of `db.DefaultContext` refactor (#27414) 2023-10-11 04:24:07 +00:00
user Fix last admin check when syncing users (#34649) (#34673) 2025-06-09 15:18:44 -07:00
versioned_migration Add global lock for migrations to make upgrade more safe with multiple replications (#33706) 2025-03-07 21:08:53 +00:00
webhook fix(webhook/discord): fixed username cannot be empty error (#35412) (#35417) 2025-09-05 18:44:39 +00:00
webtheme Improve theme display (#30671) 2025-03-08 21:38:11 +00:00
wiki Only git operations should update `last changed` of a repository (#34388) (#34427) 2025-05-11 23:23:12 +02:00