You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
singuliere fb2dc95623
services/repository: fix ListUnadoptedRepositories incorrect total count (#17865)
The total count returned by ListUnadoptedRepositories is incorrectly
calculated.

The code snippet within ListUnadoptedRepositories used to verify
unadopted repositories is repeated three times in the function. It is
moved in the checkUnadoptedRepositories function and a unit test is
added to verify it works as expected.

A unit test is added to verify the total count returned by
ListUnadoptedRepositories is as expected.

Signed-off-by: singuliere <singuliere@autistici.org>
3 years ago
..
agit Move user related model into models/user (#17781) 3 years ago
asymkey Add missing `X-Total-Count` and fix some related bugs (#17968) 3 years ago
attachment Simplify parameter types (#18006) 3 years ago
auth Reset Session ID on login (#18018) 3 years ago
comments Move repository model into models/repo (#17933) 3 years ago
cron Some repository refactors (#17950) 3 years ago
externalaccount Refactor HTTP request context (#17979) 3 years ago
forms Abort merge if head has been updated before pressing merge (#18032) 3 years ago
gitdiff Simplify parameter types (#18006) 3 years ago
issue Simplify parameter types (#18006) 3 years ago
lfs Move repository model into models/repo (#17933) 3 years ago
mailer Add List-Unsubscribe header (#17804) 3 years ago
migrations Do not read or write git reference files directly (#18079) 3 years ago
mirror Some repository refactors (#17950) 3 years ago
org Move repository model into models/repo (#17933) 3 years ago
pull Reset the conflicted files list in testpatch (#18139) 3 years ago
release Set HeadCommit when creating tags. (#18116) 3 years ago
repository services/repository: fix ListUnadoptedRepositories incorrect total count (#17865) 3 years ago
task Some repository refactors (#17950) 3 years ago
user Move keys to models/asymkey (#17917) 3 years ago
webhook Add issue hyperlinks in the webhook of wechatwork (#18102) 3 years ago
wiki Some repository refactors (#17950) 3 years ago