{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/3658","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/3658/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/3658/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/3658/events","html_url":"https://github.com/go-gitea/gitea/issues/3658","id":304150326,"number":3658,"title":"Repository Size Limit","user":{"login":"JonasFranzDEV","id":5757182,"avatar_url":"https://avatars3.githubusercontent.com/u/5757182?v=4","gravatar_id":"","url":"https://api.github.com/users/JonasFranzDEV","html_url":"https://github.com/JonasFranzDEV","followers_url":"https://api.github.com/users/JonasFranzDEV/followers","following_url":"https://api.github.com/users/JonasFranzDEV/following{/other_user}","gists_url":"https://api.github.com/users/JonasFranzDEV/gists{/gist_id}","starred_url":"https://api.github.com/users/JonasFranzDEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonasFranzDEV/subscriptions","organizations_url":"https://api.github.com/users/JonasFranzDEV/orgs","repos_url":"https://api.github.com/users/JonasFranzDEV/repos","events_url":"https://api.github.com/users/JonasFranzDEV/events{/privacy}","received_events_url":"https://api.github.com/users/JonasFranzDEV/received_events","type":"User","site_admin":false},"labels":[{"id":474393850,"url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/proposal","name":"kind/proposal","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-03-11T11:24:01Z","updated_at":"2018-03-17T13:39:38Z","closed_at":null,"author_association":"MEMBER","body":"It would be nice if it possible to set a global or user repository size limit. This would be good for Gitea providers providing Gitea for the public with limited disk space to have this option as mentioned in #1029 .\r\n\r\n\r\n# Approaches for restricting repo size\r\n## Solution 1\r\n* User gets a notification if a repository exceeded the size limit \r\n* Admin gets a notification if a repository exceeded the size limit *(optional)*\r\n* Repository gets deleted (after a ultimatum) if a user did not reduced the size of the repository\r\n\r\n## Solution 2\r\n* The size of every push gets approved (I don't know if that is possible or realistic) and blocked if the push is to large\r\n"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/373920831","html_url":"https://github.com/go-gitea/gitea/issues/3658#issuecomment-373920831","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/3658","id":373920831,"user":{"login":"JonasFranzDEV","id":5757182,"avatar_url":"https://avatars3.githubusercontent.com/u/5757182?v=4","gravatar_id":"","url":"https://api.github.com/users/JonasFranzDEV","html_url":"https://github.com/JonasFranzDEV","followers_url":"https://api.github.com/users/JonasFranzDEV/followers","following_url":"https://api.github.com/users/JonasFranzDEV/following{/other_user}","gists_url":"https://api.github.com/users/JonasFranzDEV/gists{/gist_id}","starred_url":"https://api.github.com/users/JonasFranzDEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonasFranzDEV/subscriptions","organizations_url":"https://api.github.com/users/JonasFranzDEV/orgs","repos_url":"https://api.github.com/users/JonasFranzDEV/repos","events_url":"https://api.github.com/users/JonasFranzDEV/events{/privacy}","received_events_url":"https://api.github.com/users/JonasFranzDEV/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T13:39:38Z","updated_at":"2018-03-17T13:39:38Z","author_association":"MEMBER","body":"@techknowlogick I do not agree with that because I think that this would deny every push to gitea at all if the global limit is exceeded. So we need a way to restrict the size per user because this would not restrict users having only small repos from pushing.\r\n\r\n@lafriks Would this be a posibility to get unlimited storage by creating organizations? My ideas:\r\n\r\na) Bind the limit of an organization to the owner of an organization\r\nb) Accept @lafriks proposal and limit the count of organizations per user\r\nc) Bind the limit of an organization to the members of the organization (might be complicated for users and developers due to the relationship between members and maximum size). Example: Organization uses 10GB of storage every user has 5GB of storage, The org has 4 members. => Every member could only use 2.5GB for his personal account because 2.5GB is used by the organization. (2.5GB*4=10GB)"}}
{"actor":{"display_login":"JonasFranzDEV"}}