Listing all users having more (in case of priviledged users) or exactly the limit of repositories to study if they are already abusing. According to https://codeberg.org/explore/users there are about 1,503 * 15 = 22,545. users/search does not seem to list the number of repostories, but repos/search gives the owner.
Explain them the purposes of all my repositories.
Could argue that most of time do not actually fork code if I do not modify or refer precisely to it to not uselessly overload, could have exceptional manual increase to 1,000 ideally 10,000, how would I do if I was them?
importrequestsimportjsonGIT_INSTANCE_URL='https://codeberg.org'# With `read:user` scope.TOKEN='CENSORED'headers={'Authorization':f'token {TOKEN}'}defgetApi(url):response=requests.get(f'{GIT_INSTANCE_URL}/api/v1/{url}',headers=headers)returnresponse.json()print(json.dumps(getApi(f'user'),indent=4))
If they increase my repository limit, stating in the error message that can request manual increase would be nice.
Linking to the own most issues repository would be nice. As there is [no such `Sort` when filtering with the UI](https://codeberg.org/Benjamin_Loison?tab=repositories), let us make a Python script:
Listing all users having more (in case of priviledged users) or exactly the limit of repositories to study if they are already abusing. According to https://codeberg.org/explore/users there are about 1,503 * 15 = 22,545. `users/search` does not seem to list the number of repostories, but `repos/search` gives the owner.
Explain them the purposes of all my repositories.
Could argue that most of time do not actually fork code if I do not modify or refer precisely to it to not uselessly overload, could have exceptional manual increase to 1,000 ideally 10,000, how would I do if I was them?

Source: https://gitea.lemnoslife.com/admin/users/21/edit
So on https://codeberg.org/admin/users/74932/edit for them.
<details>
<summary>Got it with Python script:</summary>
```py
import requests
import json
GIT_INSTANCE_URL = 'https://codeberg.org'
# With `read:user` scope.
TOKEN = 'CENSORED'
headers = {
'Authorization': f'token {TOKEN}'
}
def getApi(url):
response = requests.get(f'{GIT_INSTANCE_URL}/api/v1/{url}', headers = headers)
return response.json()
print(json.dumps(getApi(f'user'), indent = 4))
```
</details>
Note that https://codeberg.org/admin/ requires authentication and with my account I get `Forbidden`.
If they increase my repository limit, stating in the error message that can request manual increase would be nice.
<details>
<summary>Verified decreasing issue number with the following algorithm on first 50 issues of <a href="https://codeberg.org/Benjamin_Loison/Annihilation_mod">Annihilation_mod</a>:</summary>
```py
issues = getApi(f'repos/{repositoryFullName}/issues?state=all&limit=50')
lastIssueNumber = None
for issue in issues:
issueNumber = issue['number']
if lastIssueNumber is not None and lastIssueNumber != issueNumber + 1:
print(f'Not expected order, got {issueNumber}!')
break
lastIssueNumber = issueNumber
```
</details>
importrequestsimportjsonfromtqdmimporttqdmGIT_INSTANCE_URL='https://codeberg.org'# With `read:{user,repository,issue}` scopes.TOKEN='CENSORED'headers={'Authorization':f'token {TOKEN}'}defgetApi(url,params):response=requests.get(f'{GIT_INSTANCE_URL}/api/v1/{url}',headers=headers,params=params)returnresponse.json()page=1unsortedRepositoriesIssues={}repositoryParams={'limit':50,}repositoryIssueParams={'state':'all','limit':1,}whileTrue:repositoryParams['page']=pagerepositories=getApi(f'user/repos',repositoryParams)ifrepositories==[]:breakforrepositoryintqdm(repositories):repositoryFullName=repository['full_name']repositoryIssues=getApi(f'repos/{repositoryFullName}/issues',repositoryIssueParams)ifrepositoryIssues!=[]:repositoryName=repository['name']maximalRepositoryIssueNumber=repositoryIssues[0]['number']unsortedRepositoriesIssues[repositoryName]=maximalRepositoryIssueNumberpage+=1sortedRepositoriesIssues=dict(sorted(unsortedRepositoriesIssues.items(),key=lambdaitem:item[1]))print(json.dumps(sortedRepositoriesIssues,indent=4))
importrequestsimportjsonGIT_INSTANCE_URL='https://codeberg.org'# With `read:repository` scope.TOKEN='CENSORED'headers={'Authorization':f'token {TOKEN}'}defgetApi(url,params):response=requests.get(f'{GIT_INSTANCE_URL}/api/v1/{url}',headers=headers,params=params)returnresponse.json()repositories={}page=1whileTrue:reposData=getApi('repos/search',{'limit':50,'page':page})repos=reposData['data']ifrepos==[]:breakforrepoinrepos:login=repo['owner']['login']repositories[login]=repositories.get(login,0)+1print(page,sum(repositories.values()))page+=1withopen('repositories.json','w')asf:json.dump(repositories,f,indent=4)withopen('repositories.json')asf:repositories=json.load(f)foruserinrepositories:numberofRepositories=repositories[user]ifnumberofRepositories>=100:print(user,numberofRepositories)
Hello, I am new to this Matrix but not to Codeberg (I joined on Dec 5, 2022). I now have 100 repositories on Codeberg with my username Benjamin_Loison. I am unable to create any more repository at codeberg.org/repo/create as I reached the limit (more precisely I get The owner has already reached the limit of 100 repositories.). Would it be possible to increase to 1,000 or even 10,000 the Maximum Number of Repositories for my account please? As far as I understand it should be doable for an admin at codeberg.org/admin/users/74932/edit. I mainly reached the limit as I fork repositories (without code importation if I do not refer to it precisely or modify it) to write down issues I have related to them, Benjamin_Loison/firefox/issues is a typical example of how I use repositories. Thank you in advance.
EDIT: Let me know if it is not the right place or right way of asking.
<details>
<summary><a href="https://matrix.to/#/!wkyjxWeAOBpKMvHbno:matrix.org/$RHZM-E8FsCAQPC8Sar9kDTYjvRUoiFcnaKEezO7TFgI">I asked on Codeberg Matrix</a>:</summary>
> Hello, I am new to this Matrix but not to Codeberg ([I joined on Dec 5, 2022](https://codeberg.org/Benjamin_Loison)). [I now have 100 repositories](https://codeberg.org/Benjamin_Loison?tab=repositories) on Codeberg with [my username Benjamin\_Loison](https://codeberg.org/Benjamin_Loison). I am unable to create any more repository at [codeberg.org/repo/create](https://codeberg.org/repo/create) as I reached the limit (more precisely I get `The owner has already reached the limit of 100 repositories.`). Would it be possible to increase to 1,000 or even 10,000 the `Maximum Number of Repositories` for my account please? [As far as I understand](https://gitea.lemnoslife.com/Benjamin_Loison/codeberg/issues/1) it should be doable for an admin at [codeberg.org/admin/users/74932/edit](https://codeberg.org/admin/users/74932/edit). I mainly reached the limit as I _fork_ repositories (without code importation if I do not refer to it precisely or modify it) to write down issues I have related to them, [Benjamin\_Loison/firefox/issues](https://codeberg.org/Benjamin_Loison/firefox/issues) is a typical example of how I use repositories. Thank you in advance.
>
> **EDIT**: Let me know if it is not the right place or right way of asking.
</details>
I do not notice anymore the error message on https://codeberg.org/repo/create following [the treatment of my request](https://codeberg.org/Codeberg-e.V./requests/issues/212#issuecomment-1728870).
Note that it is unclear to me how we can retrieve the current user number of repositories limit.
Looking at the source code seems to be the most appropriate way to answer this question.
/user API endpoint does not return this information, even when selecting All (public, private, and limited) instead of Public only on codeberg.org/user/settings/applications.
Note that it is unclear to me how we can retrieve the current user number of repositories limit.
Looking at the source code seems to be the most appropriate way to answer this question.
`/user` API endpoint does not return this information, even when selecting `All (public, private, and limited) ` instead of `Public only` on [codeberg.org/user/settings/applications](https://codeberg.org/user/settings/applications).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
https://codeberg.org/Benjamin_Loison
https://codeberg.org/repo/create
Linking to the own most issues repository would be nice. As there is no such
Sortwhen filtering with the UI, let us make a Python script:Listing all users having more (in case of priviledged users) or exactly the limit of repositories to study if they are already abusing. According to https://codeberg.org/explore/users there are about 1,503 * 15 = 22,545.
users/searchdoes not seem to list the number of repostories, butrepos/searchgives the owner.Explain them the purposes of all my repositories.
Could argue that most of time do not actually fork code if I do not modify or refer precisely to it to not uselessly overload, could have exceptional manual increase to 1,000 ideally 10,000, how would I do if I was them?
Source: https://gitea.lemnoslife.com/admin/users/21/edit
So on https://codeberg.org/admin/users/74932/edit for them.
Got it with Python script:
Note that https://codeberg.org/admin/ requires authentication and with my account I get
Forbidden.If they increase my repository limit, stating in the error message that can request manual increase would be nice.
Verified decreasing issue number with the following algorithm on first 50 issues of Annihilation_mod:
Python script:
Example of many repositories having the most issues: Benjamin_Loison/firefox.
Do I have the same limitation on my own Gitea instance? It does not seem to. Otherwise would have soon noticed it with my current user.
Python script:
There are about 20 * 4,323 = 86,460 repositories according to https://codeberg.org/explore/repos. Found 86,592 with above algorithm.
Only:
seem reachable and having exceeded this limit. Both have been active in the last 2 weeks.
https://codeberg.org claims 125,129 projects and 98,121 users.
I asked on Codeberg Matrix:
Note that the most repositories user have 468.
I do not notice anymore the error message on https://codeberg.org/repo/create following the treatment of my request.
Note that it is unclear to me how we can retrieve the current user number of repositories limit.
Looking at the source code seems to be the most appropriate way to answer this question.
/userAPI endpoint does not return this information, even when selectingAll (public, private, and limited)instead ofPublic onlyon codeberg.org/user/settings/applications.Related to Benjamin-Loison/opentimestamps-client/issues/12.