gitea/services
Lunny Xiao b9efbe9fe6
Fix push commits comments when changing the pull request target branch (#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-09 19:40:54 +00:00
..
actions Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
agit Fix push commits comments when changing the pull request target branch (#35386) 2025-09-09 19:40:54 +00:00
asymkey Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
attachment Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
auth Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
automerge Rename pull request GetGitRefName to GetGitHeadRefName (#35093) 2025-07-16 21:33:33 +08:00
automergequeue Rename pull request GetGitRefName to GetGitHeadRefName (#35093) 2025-07-16 21:33:33 +08:00
context Fix error logs and improve some comments/messages (#35105) 2025-07-17 19:09:54 +08:00
contexttest Fix session gob (#35128) 2025-07-20 01:49:36 +00:00
convert Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
cron Fix a bug where lfs gc never worked. (#35198) 2025-08-12 05:38:17 +00:00
doctor Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151) 2025-09-01 18:47:04 +00:00
externalaccount Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
feed Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
forms Move organization's visibility change to danger zone. (#34814) 2025-08-20 20:57:42 -07:00
git Fix git commit committer parsing and add some tests (#35007) 2025-07-10 19:03:36 +00:00
gitdiff Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
indexer
issue Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151) 2025-09-01 18:47:04 +00:00
lfs Fix LFS range size header response (#35277) 2025-08-16 16:51:45 +00:00
mailer Refactor and update mail templates (#35150) 2025-09-04 20:20:42 -07:00
markup Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
migrations Upgrade dependencies (#35384) 2025-09-02 23:13:38 -04:00
mirror Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151) 2025-09-01 18:47:04 +00:00
notify Don't send trigger for a pending review's comment create/update/delete (#34928) 2025-07-03 10:35:45 +08:00
oauth2_provider Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
org Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
packages Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
projects Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
pull Fix push commits comments when changing the pull request target branch (#35386) 2025-09-09 19:40:54 +00:00
release Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
repository Move some functions from package git to gitrepo (#33910) 2025-09-01 19:13:18 +00:00
secrets Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00
task Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
uinotification Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
user Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
versioned_migration Remove wrong "git.DefaultContext" (#35364) 2025-08-27 16:31:21 +00:00
webhook fix(webhook/discord): fixed username cannot be empty error (#35412) 2025-09-05 11:19:31 -07:00
webtheme Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
wiki Move some functions from package git to gitrepo (#33910) 2025-09-01 19:13:18 +00:00