that is what the previous owner of the twitter x handle said. No compensation or warning. However, Twitter(or X) was exercising their trademark policy. Github just changed OP's username without any warning or breach of any policy.
https://www.businessinsider.com/elon-musk-twitter-takes-over...