Codeberg is within its right to do what it wants
and users are within their rights to say Codeberg's actions are shitty, could've been done in a better way for same effect, and are problematic enough to raise all sorts of alarms and recommendations of avoiding any positive connotations in the future
This is not entirely true. They are a registered non-profit club. They will lose their non-profit status if tax authority finds violating them https://www.gesetze-im-internet.de/ao_1977/__52.html
Then they are just a (commercial) club that has to pay taxes.