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>
2022-01-01 10:52:00 +08:00
..
agit
asymkey
attachment
auth
comments
cron
externalaccount
forms
gitdiff
issue
lfs
mailer Add List-Unsubscribe header (#17804) 2021-12-21 22:53:03 +00:00
migrations Do not read or write git reference files directly (#18079) 2021-12-23 21:44:00 +08:00
mirror
org
pull Reset the conflicted files list in testpatch (#18139) 2021-12-31 20:33:55 +08:00
release Set HeadCommit when creating tags. (#18116) 2021-12-29 19:40:57 +08:00
repository services/repository: fix ListUnadoptedRepositories incorrect total count (#17865) 2022-01-01 10:52:00 +08:00
task
user
webhook Add issue hyperlinks in the webhook of wechatwork (#18102) 2021-12-25 21:30:09 +08:00
wiki