mergeable icon indicating copy to clipboard operation
mergeable copied to clipboard

Request for Advice: How to detect modifications in submodules?

Open soheilina opened this issue 2 years ago • 0 comments

I am trying to implement a rule that prevents any changes in submodules via a PR in the super-repo.

Idea: users are allowed to modify the code in the super-repo but are forbidden to modify any submodules via a PR in the super-repo.

Scenario: super-repo has submodule_A, submodule_B, some_code.cpp. A user creates a branch in super_repo, modifies some_code.cpp and committed his changes. So far so good! Now he makes some changes in submodule_A and commits it on the same branch. The he pushes the branch and makes a PR in the super-repo.

Desirable result: Mergeable detects these changes in submodule_A and forbids the PR to get merged.

soheilina avatar Jan 18 '23 14:01 soheilina