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
| notowned |**[Not Owned File Checker]** <br /><br /> Reports if a given repository contain files that do not have specified owners in CODEOWNERS file. |
111
-
| avoid-shadowing |**[Avoid Shadowing Checker]** <br /><br /> Reports if entries go from least specific to most specific. Otherwise, earlier entries are completely ignored. |
| notowned |**[Not Owned File Checker]** <br /><br /> Reports if a given repository contain files that do not have specified owners in CODEOWNERS file. |
111
+
| avoid-shadowing |**[Avoid Shadowing Checker]** <br /><br /> Reports if entries go from least specific to most specific. Otherwise, earlier entries are completely ignored. <br /><br />For example:<br /> `# First entry`<br /> `/build/logs/ @octocat` <br /> `# Shadows` <br /> `* @s1` <br /> `/b*/logs @s5` <br /> `# OK` <br /> `/b*/other @o1` <br /> `/script/* @o2`|
112
112
113
113
To enable experimental check set `EXPERIMENTAL_CHECKS=notowned` environment variable.
114
114
@@ -127,15 +127,15 @@ Use the following environment variables to configure the application:
127
127
| <tt>GITHUB_APP_ID</tt> || Github App ID for authentication. This replaces the `GITHUB_ACCESS_TOKEN`. Instruction for creating a Github App can be found [here](./docs/gh-token.md)|
128
128
| <tt>GITHUB_APP_INSTALLATION_ID</tt> || Github App Installation ID. Required when `GITHUB_APP_ID` is set. |
129
129
| <tt>GITHUB_APP_PRIVATE_KEY</tt> || Github App private key in PEM format. Required when `GITHUB_APP_ID` is set. |
130
-
| <tt>CHECKS</tt> |-| List of checks to be executed. By default, all checks are executed. Possible values: `files`,`owners`,`duppatterns`,`syntax`. |
131
-
| <tt>EXPERIMENTAL_CHECKS</tt> |-| The comma-separated list of experimental checks that should be executed. By default, all experimental checks are turned off. Possible values: `notowned`. |
130
+
| <tt>CHECKS</tt> || List of checks to be executed. By default, all checks are executed. Possible values: `files`,`owners`,`duppatterns`,`syntax`. |
131
+
| <tt>EXPERIMENTAL_CHECKS</tt> || The comma-separated list of experimental checks that should be executed. By default, all experimental checks are turned off. Possible values: `notowned`. |
132
132
| <tt>CHECK_FAILURE_LEVEL</tt> |`warning`| Defines the level on which the application should treat check issues as failures. Defaults to `warning`, which treats both errors and warnings as failures, and exits with error code 3. Possible values are `error` and `warning`. |
133
133
| <tt>OWNER_CHECKER_REPOSITORY</tt> <b>*</b> || The owner and repository name separated by slash. For example, gh-codeowners/codeowners-samples. Used to check if GitHub owner is in the given organization. |
134
134
| <tt>OWNER_CHECKER_IGNORED_OWNERS</tt> |`@ghost`| The comma-separated list of owners that should not be validated. Example: `"@owner1,@owner2,@org/team1,[email protected]"`. |
135
135
| <tt>OWNER_CHECKER_ALLOW_UNOWNED_PATTERNS</tt> |`true`| Specifies whether CODEOWNERS may have unowned files. For example: <br> <br> `/infra/oncall-rotator/ @sre-team` <br> `/infra/oncall-rotator/oncall-config.yml` <br> <br> The `/infra/oncall-rotator/oncall-config.yml` file is not owned by anyone. |
136
-
| <tt>OWNER_CHEKER_OWNERS_MUST_BE_TEAMS</tt>|`false`| Specifies whether only teams are allowed as owners of files. |
137
-
| <tt>NOT_OWNED_CHECKER_SKIP_PATTERNS</tt> |-| The comma-separated list of patterns that should be ignored by `not-owned-checker`. For example, you can specify `*` and as a result, the `*` pattern from the **CODEOWNERS** file will be ignored and files owned by this pattern will be reported as unowned unless a later specific pattern will match that path. It's useful because often we have default owners entry at the begging of the CODOEWNERS file, e.g. `* @global-owner1 @global-owner2`|
138
-
| <tt>NOT_OWNED_CHECKER_SUBDIRECTORIES</tt> |-| The comma-separated list of subdirectories to check in `not-owned-checker`. When specified, only files in the listed subdirectories will be checked if they do not have specified owners in CODEOWNERS. |
136
+
| <tt>OWNER_CHECKER_OWNERS_MUST_BE_TEAMS</tt> |`false`| Specifies whether only teams are allowed as owners of files. |
137
+
| <tt>NOT_OWNED_CHECKER_SKIP_PATTERNS</tt> || The comma-separated list of patterns that should be ignored by `not-owned-checker`. For example, you can specify `*` and as a result, the `*` pattern from the **CODEOWNERS** file will be ignored and files owned by this pattern will be reported as unowned unless a later specific pattern will match that path. It's useful because often we have default owners entry at the begging of the CODOEWNERS file, e.g. `* @global-owner1 @global-owner2`|
138
+
| <tt>NOT_OWNED_CHECKER_SUBDIRECTORIES</tt> || The comma-separated list of subdirectories to check in `not-owned-checker`. When specified, only files in the listed subdirectories will be checked if they do not have specified owners in CODEOWNERS. |
139
139
| <tt>NOT_OWNED_CHECKER_TRUST_WORKSPACE</tt> |`false`| Specifies whether the repository path should be marked as safe. See: https://github.com/actions/checkout/issues/766.|
0 commit comments