githubgithub-codereviews

Exclude files/directories from code review requirement


Our github repo includes a directory containing language translation files. These are generated automatically from a database. Ideally we should find a way to deploy these through some other mechanism than updating them in our github repository, but that's how it's currently done.

We also have an ads.txt file that we just update with fixed entries whenever our advertising partner sends us new lines. These don't mean anything to us, we just take what they send us.

So whenever these files are updated, we have to go through the process of creating a pull request and reviewing it. I just do a cursory check that it only contains the appropriate files, and then give a pro forma approval.

Is there any way of marking files like these as not requiring code review, so the engineer can just push and merge the changes, and deploy without bothering another engineer for approval?


Solution

  • This is not supported by Github per default. But Github Actions should be powerful enough to handle that requirement. Consider the following pipeline, triggered on each pull request:

    This should do the trick