This script converts CODEOWNERS
file to IDEA Scopes.
How to use:
-
Download the script
-
Place it in the same directory as
CODEOWNERS
file (or edit theCODEOWNERS_FILE_PATH
variable in the script) -
Specify your teams or users in the
OWNERS_TO_SEARCH_FOR
variable (without@
) -
(Optionally) Edit the
PROJECT_NAME
variable 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.