After a bit of fiddling with the CODEOWNERS file, I managed to get it to work for pull requests created through the web UI, but it's not being respected when creating pull requests through the REST API (at least not when using an access token). Is that expected, is it a bug or did I do something wrong?
If this is normal behavior, it should at least be mentionned in the documentation.