You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a GitHub-compatible CODEOWNERS file based on the `owners`.
@@ -45,5 +45,6 @@ Creates a GitHub-compatible CODEOWNERS file based on the `owners`.
45
45
| <aid="generate_codeowners-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
46
46
| <aid="generate_codeowners-generated_comment"></a>generated_comment | A comment to insert at the top of the generated file | String | optional |`"# This file was generated by rules_codeowners / Bazel. Don't edit it directly"`|
47
47
| <aid="generate_codeowners-owners"></a>owners | A list of codeowners and generate_codeowners. One generate_codeowners can include another generate_codeowners to achieve nested rules. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | required ||
48
+
| <aid="generate_codeowners-validate"></a>validate | Set to True to enable strict validation of codeowners values. Disabled by default. | Boolean | optional |`False`|
@@ -126,6 +134,7 @@ Creates a GitHub-compatible CODEOWNERS file based on the `owners`.
126
134
default="# This file was generated by rules_codeowners / Bazel. Don't edit it directly",
127
135
),
128
136
"owners": attr.label_list(mandatory=True, doc="A list of codeowners and generate_codeowners. One generate_codeowners can include another generate_codeowners to achieve nested rules."),
137
+
"validate": attr.bool(default=False, doc="Set to True to enable strict validation of codeowners values. Disabled by default.", mandatory=False),
0 commit comments