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
* Add executable_name field to Config with default value
* Include executable name in validator errors and messages
* Add support for custom executable_name in config
* Bump codeowners version to 0.3.1
* Add executable_path to RunConfig and use it in config loading
* Simplify executable_path handling by using String directly
* Rename executable_path to executable_name throughout code and tests
- `executable_name` (default: `'codeowners'`): Customize the command name shown in validation error messages. Useful when using `codeowners-rs` via wrappers like the [code_ownership](https://github.com/rubyatscale/code_ownership) Ruby gem.
217
+
218
+
Example configuration with custom executable name:
Err(_) => vec![Error::CodeownershipFileIsStale],// Treat any read error as stale file
141
+
Err(_) => vec![Error::CodeownershipFileIsStale{
142
+
executable_name:self.executable_name.to_string(),
143
+
}],
139
144
}
140
145
}
141
146
@@ -161,13 +166,13 @@ impl Validator {
161
166
implError{
162
167
pubfncategory(&self) -> String{
163
168
matchself{
164
-
Error::FileWithoutOwner{path: _ } => "Some files are missing ownership".to_owned(),
165
-
Error::FileWithMultipleOwners{path: _,owners: _ } => "Code ownership should only be defined for each file in one way. The following files have declared ownership in multiple ways".to_owned(),
166
-
Error::CodeownershipFileIsStale => {
167
-
"CODEOWNERS out of date. Run `codeowners generate` to update the CODEOWNERS file".to_owned()
169
+
Error::FileWithoutOwner{path: _ } => "Some files are missing ownership".to_owned(),
170
+
Error::FileWithMultipleOwners{path: _,owners: _ } => "Code ownership should only be defined for each file in one way. The following files have declared ownership in multiple ways".to_owned(),
0 commit comments