The only thing which I didn't find how to setup in a declarative way are librewolf's extension. You need to do it yourself
Reference in New Issue
Block a user
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.