Requirement is to read the source code folder path and its corresponding mandatory reviewer from an input file which is already version controlled in GIT repo master branch. Then enable merge button only if at least one mandatory reviewer has approved the PR for the corresponding source code folder path under review as part of the PR. A PR may contain multiple folder paths, so the check should happen for all edited paths maybe in a loop.
Input file format:
-----------------------------------------
src/test/module1 : mandatory-reviewer1,mandatory-reviewer2
src/test/module2 : mandatory-reviewer3,mandatory-reviewer4
-----------------------------------------
Please help with the code snippet or some pointers. I tried few searches, but could not find the needed info.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.