Enforce rules across projects, like github apps?

Hi, I want to do things like

  • all projects must have a README
  • if README was modified, run a linter (like lefthook or husky with lint staged)

I have a main project with submodules if that helps. It may be enough to enforce this rules only to its submodule’s repositories .

Any suggestions? Thanks.