Also, in the end if the code had bugs you should have tested it locally before merging it into your master branch. If code is ugly but works in an awesome way, is one thing. If it ugly, and does not do what is intended, the result of the pull request should be a giant NO.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also, in the end if the code had bugs you should have tested it locally before merging it into your master branch. If code is ugly but works in an awesome way, is one thing. If it ugly, and does not do what is intended, the result of the pull request should be a giant NO.