This script converts CODEOWNERS file to IDEA Scopes.
How to use:
-
Download the script
-
Place it in the same directory as
CODEOWNERSfile (or edit theCODEOWNERS_FILE_PATHvariable in the script) -
Specify your teams or users in the
OWNERS_TO_SEARCH_FORvariable (without@) -
(Optionally) Edit the
PROJECT_NAMEvariable to specify project name -
Run the script:
python3 convert.py
-
Create a scope in your IDE and paste an output from the previous step to the "Pattern" field. See "Scopes" for details.