Skip to content

Commit 5595435

Browse files
authored
Allow to specify CODEOWNERS location in config or env var (#159)
* Allow to specify CODEOWNERS location in config or env var * Update codeowners-rs dependency to current main branch with the fix
1 parent f1625cb commit 5595435

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/code_ownership/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rb-sys = { version = "0.9.111", features = [
1717
magnus = { version = "0.8" }
1818
serde = { version = "1.0.219", features = ["derive"] }
1919
serde_magnus = "0.10"
20-
codeowners = { git = "https://github.com/rubyatscale/codeowners-rs.git", tag = "v0.3.0" }
20+
codeowners = { git = "https://github.com/rubyatscale/codeowners-rs.git", branch = "main" }
2121

2222
[dev-dependencies]
2323
rb-sys = { version = "0.9.117", features = [

ext/code_ownership/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ fn build_run_config() -> RunConfig {
109109
Ok(path) => path,
110110
_ => PathBuf::from("."),
111111
};
112-
let codeowners_file_path = project_root.join(".github/CODEOWNERS");
113112
let config_path = project_root.join("config/code_ownership.yml");
114113

115114
RunConfig {
116115
project_root,
117-
codeowners_file_path,
116+
codeowners_file_path: None,
118117
config_path,
119118
no_cache: false,
119+
executable_name: None,
120120
}
121121
}
122122

0 commit comments

Comments
 (0)