eng/common/instructions/azsdk-tools/validate-codeowners.instructions.md
Validate service label and ensure at least 2 valid code owners exist for SDK repositories.
Use azsdk_check_service_label to verify the service label exists:
Ask user to specify SDK repository they want to validate codeowners for or detect from context.
Repository name mapping:
Use azsdk_engsys_validate_codeowners_entry_for_service with either serviceLabel OR repoPath or both, but at least one must be used. If one isn't provided, leave the parameter field empty.
If entry exists: Go to Step 3 If no entry exists: Go to Step 4
Valid code owners must be:
If at least 2 valid owners: Success - optionally add or delete additional owners If less than 2 valid owners: CRITICAL - must fix before proceeding:
After any changes, re-validate with azsdk_engsys_validate_codeowners_entry_for_service.
When no CODEOWNERS entry exists yet:
""./sdk/projectpathazsdk_engsys_codeowner_update with required parametersazsdk_engsys_codeowner_update with isAdding: trueazsdk_engsys_codeowner_update