Is it possible to require review only on owned files

I’m looking for possibility to make review in pull request mandatory only if changed file has codeowners.

i.e. I have files 

some_stuff.ext

very_sensitive.ext

And codeowners defined as following

very_sensitive.ext    @alice

What I want to happen is if Bob modifies some_stuff.ext, he can merge it without awaiting for review (status checks are still required). But if he modifies very_sensitive.ext, then review from Alice is mandatory (in addition to status checks).

Is it possible somehow? 

Thanks for reaching out.

There isn’t a way to model that specific review workflow with a mixture of only CODEOWNERS and protected branch settings. On the other hand, with GitHub Actions (currently still in beta), virtually any review workflow can be set up. One would have to find a pre-built Action or code their own, but you may want to take a look and see if that’s something that would work for you.

Let us know if you have more questions.