From a6efeede5db897dacacd2950b124b1f9bfd85c98 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Tue, 17 Nov 2026 11:17:56 -0800 Subject: [PATCH 1/3] Give a file in a nested package to the nearest package in validate `validate` built a matcher for only the outermost of a set of nested packages of one type, so a file in a nested package got the outer package's team. CODEOWNERS and `for-file` give it the nested package's team. A full `validate` didn't notice, but `validate ` compares each file's owner with CODEOWNERS, so it failed with "CODEOWNERS out of date", which regenerating can't fix. A package at the project root encloses every other package, so with one, every file in another package failed this way. Each package's matcher now leaves out the packages of its type nested in it, so a file matches only its nearest package. A package naming a team that doesn't exist still gets no matcher, so its files still fall through to the enclosing package, as in CODEOWNERS and `for-file`. A file in a nested package that another source gives the outer package's team, such as an annotation, now has two owners in `validate`, as it already did in `for-file`. --- src/common_test.rs | 30 ++++ src/ownership/mapper/package_mapper.rs | 207 ++++++++++++------------- tests/package_ownership_test.rs | 128 +++++++++++++++ 3 files changed, 253 insertions(+), 112 deletions(-) create mode 100644 tests/package_ownership_test.rs diff --git a/src/common_test.rs b/src/common_test.rs index 511e5ab..8a88ef6 100644 --- a/src/common_test.rs +++ b/src/common_test.rs @@ -405,6 +405,36 @@ pub mod tests { ) } + pub fn build_ownership_with_nested_package_codeowners() -> Result> { + ownership!( + TestProjectFile { + relative_path: "packs/foo/package.yml".to_owned(), + content: "owner: Foo\n".to_owned(), + }, + TestProjectFile { + relative_path: "packs/foo/bam/package.yml".to_owned(), + content: "owner: Bam\n".to_owned(), + }, + TestProjectFile { + relative_path: "packs/foo/bar/package.yml".to_owned(), + content: "owner: Bar\n".to_owned(), + }, + TestProjectFile { + relative_path: "packs/foo/bar/baz/package.yml".to_owned(), + content: "owner: Baz\n".to_owned(), + }, + TestProjectFile { + relative_path: "packs/foo/unknown/package.yml".to_owned(), + content: "owner: NoSuchTeam\n".to_owned(), + }, + // A sibling whose name starts with `foo`, which `packs/foo` doesn't contain. + TestProjectFile { + relative_path: "packs/foobar/package.yml".to_owned(), + content: "owner: Bar\n".to_owned(), + } + ) + } + pub fn build_ownership_with_package_codeowners_with_glob_metacharacters() -> Result> { ownership!( TestProjectFile { diff --git a/src/ownership/mapper/package_mapper.rs b/src/ownership/mapper/package_mapper.rs index bf98a04..ae1fcd7 100644 --- a/src/ownership/mapper/package_mapper.rs +++ b/src/ownership/mapper/package_mapper.rs @@ -1,9 +1,10 @@ +use std::path::Path; use std::sync::Arc; use super::escaper::directory_glob; use super::{Entry, Source}; use super::{Mapper, OwnerMatcher}; -use crate::project::{Package, PackageType, Project}; +use crate::project::{Package, PackageType, Project, Team}; use itertools::Itertools; pub struct RubyPackageMapper { @@ -88,52 +89,50 @@ impl PackageMapper { entries } + // A matcher leaves out the packages of its type nested in it, so a file gets its nearest package, as in CODEOWNERS and + // `for-file`. A package naming an unknown team gets no matcher, so its files fall through to the enclosing package. fn owner_matchers(&self, package_type: &PackageType) -> Vec { - let mut owner_matchers: Vec = Vec::new(); - let team_by_name = self.project.teams_by_name.clone(); - - let packages = &self.project.packages; - let packages: Vec<&Package> = packages.iter().filter(|package| &package.package_type == package_type).collect(); + let team_by_name = &self.project.teams_by_name; - // Nested packs can create a duplicate ownership false positive. - // We avoid it by treating nested packs as a single top-level pack for the purposes of validation. - let packages = remove_nested_packages(&packages); - - for package in packages { - if let Some(package_root) = package.package_root() { - let package_root = package_root.to_string_lossy(); - let team = team_by_name.get(&package.owner); + // Sorting by root puts the packages nested in a package right after it. + let packages: Vec<(&Path, &Package, &Team)> = self + .project + .packages + .iter() + .filter(|package| &package.package_type == package_type) + .filter_map(|package| Some((package.package_root()?, package, team_by_name.get(&package.owner)?))) + .sorted_by_key(|(package_root, _, _)| *package_root) + .collect(); - if let Some(team) = team { - owner_matchers.push(OwnerMatcher::new_glob( - directory_glob(&package_root), - team.name.to_owned(), - Source::Package(package.path.to_string_lossy().to_string(), directory_glob(&package_root)), - )); + packages + .iter() + .enumerate() + .map(|(index, (package_root, package, team))| { + let glob = directory_glob(&package_root.to_string_lossy()); + OwnerMatcher::Glob { + glob: glob.clone(), + subtracted_globs: nested_package_roots(package_root, &packages[index + 1..]) + .into_iter() + .map(|nested_root| directory_glob(&nested_root.to_string_lossy())) + .collect(), + team_name: team.name.to_owned(), + source: Source::Package(package.path.to_string_lossy().to_string(), glob), } - } - } - - owner_matchers + }) + .collect() } } -fn remove_nested_packages<'a>(packages: &'a [&'a Package]) -> Vec<&'a Package> { - let mut top_level_packages: Vec<&Package> = Vec::new(); - - for package in packages.iter().sorted_by_key(|package| package.package_root()) { - if let Some(last_package) = top_level_packages.last() { - if let (Some(current_root), Some(last_root)) = (package.package_root(), last_package.package_root()) - && !current_root.starts_with(last_root) - { - top_level_packages.push(package); - } - } else { - top_level_packages.push(package); +// The roots of the packages directly inside `package_root`, from the packages that sort after it. Leaving out a directly +// nested package also leaves out the packages inside it. +fn nested_package_roots<'a>(package_root: &Path, later_packages: &[(&'a Path, &Package, &Team)]) -> Vec<&'a Path> { + let mut nested_roots: Vec<&'a Path> = Vec::new(); + for &(root, _, _) in later_packages.iter().take_while(|(root, _, _)| root.starts_with(package_root)) { + if nested_roots.last().is_none_or(|nested_root| !root.starts_with(nested_root)) { + nested_roots.push(root); } } - - top_level_packages + nested_roots } #[cfg(test)] @@ -141,79 +140,14 @@ mod tests { use super::*; use crate::{ common_test::tests::{ - build_ownership_with_all_mappers, build_ownership_with_package_codeowners, + build_ownership_with_all_mappers, build_ownership_with_nested_package_codeowners, build_ownership_with_package_codeowners, build_ownership_with_package_codeowners_at_the_project_root, build_ownership_with_package_codeowners_with_glob_metacharacters, vecs_match, }, ownership::mapper::RubyPackageMapper, - project::{Package, PackageType}, + project::PackageType, }; - use itertools::Itertools; - use std::{error::Error, path::Path}; - #[test] - fn test_remove_nested_packages() { - let packages = [ - Package { - path: Path::new("packs/a/package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_a".to_owned(), - }, - Package { - path: Path::new("packs/a/b/e/package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_b".to_owned(), - }, - Package { - path: Path::new("packs/a/b/c/e/d/f/package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_b".to_owned(), - }, - Package { - path: Path::new("packs/c/package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_a".to_owned(), - }, - ]; - - let packages = packages.iter().collect_vec(); - - let package_paths = super::remove_nested_packages(&packages) - .iter() - .map(|package| package.path.to_str().unwrap()) - .collect_vec(); - - assert_eq!(package_paths, vec!["packs/a/package.yml", "packs/c/package.yml"]); - } - - #[test] - fn test_remove_nested_packages_with_a_package_at_the_project_root() { - let packages = [ - Package { - path: Path::new("packs/a/package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_a".to_owned(), - }, - Package { - path: Path::new("package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_root".to_owned(), - }, - Package { - path: Path::new("packs/b/package.yml").to_owned(), - package_type: PackageType::Ruby, - owner: "owner_b".to_owned(), - }, - ]; - - let packages = packages.iter().collect_vec(); - - let package_paths = super::remove_nested_packages(&packages) - .iter() - .map(|package| package.path.to_str().unwrap()) - .collect_vec(); - - assert_eq!(package_paths, vec!["package.yml"]); - } + use std::error::Error; #[test] fn test_entries() -> Result<(), Box> { @@ -325,17 +259,66 @@ mod tests { #[test] fn test_owner_matchers_at_the_project_root() -> Result<(), Box> { - // The root package encloses the other, so only it is matched, as for any nested package. + // The root package encloses the other, so it leaves that one out, as for any nested package. let ownership = build_ownership_with_package_codeowners_at_the_project_root()?; let mapper = PackageMapper::build(ownership.project.clone()); vecs_match( &mapper.owner_matchers(&PackageType::Ruby), - &vec![OwnerMatcher::new_glob( - "**/**".to_owned(), - "Foo".to_owned(), - Source::Package("package.yml".to_owned(), "**/**".to_owned()), - )], + &vec![ + OwnerMatcher::Glob { + glob: "**/**".to_owned(), + subtracted_globs: vec!["packs/inner/**/**".to_owned()], + team_name: "Foo".to_owned(), + source: Source::Package("package.yml".to_owned(), "**/**".to_owned()), + }, + OwnerMatcher::new_glob( + "packs/inner/**/**".to_owned(), + "Bar".to_owned(), + Source::Package("packs/inner/package.yml".to_owned(), "packs/inner/**/**".to_owned()), + ), + ], ); Ok(()) } + + #[test] + fn test_owner_matchers_leave_out_the_packages_nested_in_them() -> Result<(), Box> { + let ownership = build_ownership_with_nested_package_codeowners()?; + let mapper = PackageMapper::build(ownership.project.clone()); + let matcher = |root: &str, subtracted_roots: &[&str], team: &str| OwnerMatcher::Glob { + glob: format!("{root}/**/**"), + subtracted_globs: subtracted_roots.iter().map(|root| format!("{root}/**/**")).collect(), + team_name: team.to_owned(), + source: Source::Package(format!("{root}/package.yml"), format!("{root}/**/**")), + }; + // `packs/foo/unknown` names no team, so it has no matcher and `packs/foo` keeps its files. + vecs_match( + &mapper.owner_matchers(&PackageType::Ruby), + &vec![ + matcher("packs/foo", &["packs/foo/bam", "packs/foo/bar"], "Foo"), + matcher("packs/foo/bam", &[], "Bam"), + matcher("packs/foo/bar", &["packs/foo/bar/baz"], "Bar"), + matcher("packs/foo/bar/baz", &[], "Baz"), + matcher("packs/foobar", &[], "Bar"), + ], + ); + Ok(()) + } + + #[test] + fn test_a_file_in_nested_packages_belongs_to_the_nearest_one() -> Result<(), Box> { + let ownership = build_ownership_with_nested_package_codeowners()?; + for (file, team) in [ + ("packs/foo/app/a.rb", "Foo"), + ("packs/foo/bar/app/a.rb", "Bar"), + ("packs/foo/bar/baz/app/a.rb", "Baz"), + ("packs/foo/unknown/app/a.rb", "Foo"), + ("packs/foobar/app/a.rb", "Bar"), + ] { + let owners = ownership.for_file(Path::new(file))?; + let teams: Vec<&str> = owners.iter().map(|owner| owner.team.name.as_str()).collect(); + assert_eq!(teams, vec![team], "{file}"); + } + Ok(()) + } } diff --git a/tests/package_ownership_test.rs b/tests/package_ownership_test.rs new file mode 100644 index 0000000..da80152 --- /dev/null +++ b/tests/package_ownership_test.rs @@ -0,0 +1,128 @@ +//! `validate`, `for-file` and CODEOWNERS agree on which package owns a file: the nearest one, of each type. + +use indoc::indoc; +use predicates::prelude::*; +use std::{error::Error, fs}; +use tempfile::TempDir; + +mod common; +use common::{codeowners, git_add_all_files, init_git_repo}; + +const RUBY_AND_TYPESCRIPT: &str = "owned_globs:\n - \"**/*.{rb,ts}\"\n"; + +// A git repo of teams Foo and Bar, `config` and `files`, with CODEOWNERS generated. +fn generated_project(config: &str, files: &[(&str, &str)]) -> Result> { + let temp_dir = tempfile::tempdir()?; + let project_root = temp_dir.path(); + let defaults = [ + ("config/code_ownership.yml", config), + ("config/teams/foo.yml", "name: Foo\ngithub:\n team: \"@org/foo\"\n"), + ("config/teams/bar.yml", "name: Bar\ngithub:\n team: \"@org/bar\"\n"), + ]; + for (path, contents) in defaults.iter().chain(files) { + let path = project_root.join(path); + fs::create_dir_all(path.parent().ok_or("a file needs a parent directory")?)?; + fs::write(path, contents)?; + } + init_git_repo(project_root); + git_add_all_files(project_root); + codeowners(project_root, &["generate"])?.success(); + Ok(temp_dir) +} + +fn assert_owner(project_root: &std::path::Path, file: &str, team: &str) -> Result<(), Box> { + for args in [["for-file", file].as_slice(), &["for-file", "--from-codeowners", file]] { + codeowners(project_root, args)? + .success() + .stdout(predicate::str::starts_with(format!("Team: {team}\n"))); + } + Ok(()) +} + +fn nested_packages() -> Result> { + generated_project( + RUBY_AND_TYPESCRIPT, + &[ + ("packs/payroll/package.yml", "owner: Foo\n"), + ("packs/payroll/app/payroll.rb", ""), + ("packs/payroll/payments/package.yml", "owner: Bar\n"), + ("packs/payroll/payments/app/payment.rb", ""), + ("frontend/app/package.json", r#"{"metadata": {"owner": "Foo"}}"#), + ("frontend/app/index.ts", ""), + ("frontend/app/widgets/package.json", r#"{"metadata": {"owner": "Bar"}}"#), + ("frontend/app/widgets/button.ts", ""), + ], + ) +} + +#[test] +fn test_a_file_in_a_nested_package_belongs_to_the_nearer_package() -> Result<(), Box> { + let project = nested_packages()?; + let project_root = project.path(); + let files = [ + ("packs/payroll/app/payroll.rb", "Foo"), + ("packs/payroll/payments/app/payment.rb", "Bar"), + ("frontend/app/index.ts", "Foo"), + ("frontend/app/widgets/button.ts", "Bar"), + ]; + + for (file, team) in files { + assert_owner(project_root, file, team)?; + } + codeowners(project_root, &["validate"])?.success().stdout(""); + // Only the scoped run compares each file's owner with the one CODEOWNERS gives it. + let mut validate_files = vec!["validate"]; + validate_files.extend(files.iter().map(|(file, _)| *file)); + codeowners(project_root, &validate_files)?.success().stdout(""); + Ok(()) +} + +#[test] +fn test_a_file_in_a_package_inside_a_root_package_belongs_to_the_inner_package() -> Result<(), Box> { + // The default ruby_package_paths don't match the project root. + let project = generated_project( + "owned_globs:\n - \"**/*.rb\"\nruby_package_paths:\n - \"**/*\"\n", + &[ + ("package.yml", "owner: Foo\n"), + ("app/root.rb", ""), + ("packs/inner/package.yml", "owner: Bar\n"), + ("packs/inner/app/inner.rb", ""), + ], + )?; + let project_root = project.path(); + + assert_owner(project_root, "app/root.rb", "Foo")?; + assert_owner(project_root, "packs/inner/app/inner.rb", "Bar")?; + codeowners(project_root, &["validate", "app/root.rb", "packs/inner/app/inner.rb"])? + .success() + .stdout(""); + Ok(()) +} + +#[test] +fn test_validate_reports_a_nested_package_file_that_the_outer_package_team_annotates() -> Result<(), Box> { + // The annotation names the outer package's team, not the nearer package's, so the file has two owners. + let project = generated_project( + RUBY_AND_TYPESCRIPT, + &[ + ("packs/payroll/package.yml", "owner: Foo\n"), + ("packs/payroll/payments/package.yml", "owner: Bar\n"), + ("packs/payroll/payments/app/annotated.rb", "# @team Foo\n"), + ], + )?; + let project_root = project.path(); + + codeowners(project_root, &["for-file", "packs/payroll/payments/app/annotated.rb"])? + .failure() + .stdout(predicate::str::starts_with("Error: file is owned by multiple teams!\n")); + codeowners(project_root, &["validate"])? + .failure() + .stdout(predicate::str::contains(indoc! {" + packs/payroll/payments/app/annotated.rb + owner: Bar + - Owner defined in `packs/payroll/payments/package.yml` with implicitly owned glob: `packs/payroll/payments/**/**` + owner: Foo + - Owner annotation at the top of the file + "})); + Ok(()) +} From 1b70bfaab1bb724efa4bd74de0423c2952c5b21c Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Tue, 17 Nov 2026 11:20:30 -0800 Subject: [PATCH 2/3] Report both packages in a directory with a package.yml and a package.json `for-file` stopped at the first package it found in the nearest directory with one, checking `package.yml` before `package.json`. In a directory with both, naming different teams, it gave the `package.yml`'s team, while `validate` matches both and reports the file as having two owners. It now returns both, so `for-file` reports the conflict that `validate` does, and lists both files when they name one team. code_ownership's `for_file` takes the first owner, which is now the first by team name, as for any other tie. --- src/ownership/file_owner_resolver.rs | 65 +++++++++++++++++++++++++--- tests/package_ownership_test.rs | 44 ++++++++++++++++++- 2 files changed, 101 insertions(+), 8 deletions(-) diff --git a/src/ownership/file_owner_resolver.rs b/src/ownership/file_owner_resolver.rs index 49f958c..d1f1f13 100644 --- a/src/ownership/file_owner_resolver.rs +++ b/src/ownership/file_owner_resolver.rs @@ -57,7 +57,7 @@ pub fn find_file_owners(project_root: &Path, config: &Config, file_path: &Path) sources_by_team.entry(owner_team_name).or_default().push(dir_source); } - if let Some((owner_team_name, package_source)) = nearest_package_owner(project_root, &relative_file_path, config, teams_by_name) { + for (owner_team_name, package_source) in nearest_package_owners(project_root, &relative_file_path, config, teams_by_name) { sources_by_team.entry(owner_team_name).or_default().push(package_source); } @@ -267,12 +267,14 @@ fn most_specific_directory_owner( best } -fn nearest_package_owner( +// The owners of the packages in the nearest directory with one that names a known team. `validate` matches a +// `package.yml` and a `package.json` in one directory alike, so both are returned. +fn nearest_package_owners( project_root: &Path, relative_file_path: &Path, config: &Config, teams_by_name: &HashMap, -) -> Option<(String, Source)> { +) -> Vec<(String, Source)> { let mut current = project_root.join(relative_file_path); loop { if !current.pop() { @@ -280,6 +282,7 @@ fn nearest_package_owner( } let parent_rel = crate::path_utils::relative_to(project_root, current.as_path()); if let Some(rel_str) = parent_rel.to_str() { + let mut owners = Vec::new(); if glob_list_matches(rel_str, &config.ruby_package_paths) { let pkg_yml = current.join("package.yml"); if pkg_yml.exists() { @@ -288,7 +291,7 @@ fn nearest_package_owner( if let Some(team) = owner.and_then(|owner| teams_by_name.get(&owner)) { let package_path = parent_rel.join("package.yml"); let package_glob = directory_glob(rel_str); - return Some(( + owners.push(( team.name.clone(), Source::Package(package_path.to_string_lossy().to_string(), package_glob), )); @@ -297,7 +300,7 @@ fn nearest_package_owner( // validate rejects this package, so don't fall through to an enclosing package's owner. Err(e) => { eprintln!("Error reading ruby package: {e:?}, path: {}", pkg_yml.display()); - return None; + return Vec::new(); } } } @@ -310,18 +313,21 @@ fn nearest_package_owner( { let package_path = parent_rel.join("package.json"); let package_glob = directory_glob(rel_str); - return Some(( + owners.push(( team.name.clone(), Source::Package(package_path.to_string_lossy().to_string(), package_glob), )); } } + if !owners.is_empty() { + return owners; + } } if current == project_root { break; } } - None + Vec::new() } // removed: use `Source::len()` instead @@ -412,6 +418,19 @@ mod tests { } } + // The owner `nearest_package_owners` finds, for a project with no directory holding both a `package.yml` and a + // `package.json`. + fn nearest_package_owner( + project_root: &Path, + relative_file_path: &Path, + config: &Config, + teams_by_name: &HashMap, + ) -> Option<(String, Source)> { + let mut owners = nearest_package_owners(project_root, relative_file_path, config, teams_by_name); + assert!(owners.len() <= 1, "expected at most one package owner, got {owners:?}"); + owners.pop() + } + #[test] fn test_read_top_of_file_team_parses_at_and_colon_forms() { let td = tempdir().unwrap(); @@ -593,6 +612,38 @@ mod tests { } } + #[test] + fn test_nearest_package_owners_returns_a_package_yml_and_a_package_json_in_one_directory() { + let td = tempdir().unwrap(); + let project_root = td.path(); + let config = build_config_for_temp("packs/**/*", "packs/**/*", "vendored"); + + let pkg = project_root.join("packs/payroll"); + std::fs::create_dir_all(&pkg).unwrap(); + std::fs::write(pkg.join("package.yml"), "---\nowner: Payroll\n").unwrap(); + std::fs::write(pkg.join("package.json"), r#"{"metadata": {"owner": "UX"}}"#).unwrap(); + + let mut tbn: HashMap = HashMap::new(); + for name in ["Payroll", "UX"] { + let t = team_named(name); + tbn.insert(t.name.clone(), t); + } + + assert_eq!( + nearest_package_owners(project_root, Path::new("packs/payroll/app/a.rb"), &config, &tbn), + vec![ + ( + "Payroll".to_string(), + Source::Package("packs/payroll/package.yml".to_string(), "packs/payroll/**/**".to_string()) + ), + ( + "UX".to_string(), + Source::Package("packs/payroll/package.json".to_string(), "packs/payroll/**/**".to_string()) + ), + ] + ); + } + #[test] fn test_nearest_package_owner_describes_a_package_by_the_glob_validate_matches() { let td = tempdir().unwrap(); diff --git a/tests/package_ownership_test.rs b/tests/package_ownership_test.rs index da80152..5df464b 100644 --- a/tests/package_ownership_test.rs +++ b/tests/package_ownership_test.rs @@ -1,4 +1,5 @@ -//! `validate`, `for-file` and CODEOWNERS agree on which package owns a file: the nearest one, of each type. +//! `validate`, `for-file` and CODEOWNERS agree on which package owns a file: the nearest one, of each type. `validate` +//! and `for-file` both count a `package.yml` and a `package.json` in one directory as two owners of its files. use indoc::indoc; use predicates::prelude::*; @@ -126,3 +127,44 @@ fn test_validate_reports_a_nested_package_file_that_the_outer_package_team_annot "})); Ok(()) } + +#[test] +fn test_for_file_reports_a_package_yml_and_a_package_json_in_one_directory() -> Result<(), Box> { + let project = generated_project( + "owned_globs:\n - \"**/*.rb\"\njavascript_package_paths:\n - packs/**/*\n", + &[ + ("packs/payroll/package.yml", "owner: Foo\n"), + ("packs/payroll/package.json", r#"{"metadata": {"owner": "Bar"}}"#), + ("packs/payroll/app/payroll.rb", ""), + ], + )?; + let project_root = project.path(); + + codeowners(project_root, &["for-file", "packs/payroll/app/payroll.rb"])? + .failure() + .stdout(indoc! {" + Error: file is owned by multiple teams! + + Team: Bar + Github Team: @org/bar + Team YML: config/teams/bar.yml + Description: + - Owner defined in `packs/payroll/package.json` with implicitly owned glob: `packs/payroll/**/**` + + Team: Foo + Github Team: @org/foo + Team YML: config/teams/foo.yml + Description: + - Owner defined in `packs/payroll/package.yml` with implicitly owned glob: `packs/payroll/**/**` + "}); + codeowners(project_root, &["validate"])? + .failure() + .stdout(predicate::str::contains(indoc! {" + packs/payroll/app/payroll.rb + owner: Bar + - Owner defined in `packs/payroll/package.json` with implicitly owned glob: `packs/payroll/**/**` + owner: Foo + - Owner defined in `packs/payroll/package.yml` with implicitly owned glob: `packs/payroll/**/**` + "})); + Ok(()) +} From f1c0131bb3122ad0b7b94e0bec71d41b7edb220d Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Tue, 17 Nov 2026 11:21:46 -0800 Subject: [PATCH 3/3] Bump version to 0.7.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8edb63b..9d3e5ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -184,7 +184,7 @@ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" [[package]] name = "codeowners" -version = "0.7.1" +version = "0.7.2" dependencies = [ "assert_cmd", "clap", diff --git a/Cargo.toml b/Cargo.toml index 7e98759..516bbbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codeowners" -version = "0.7.1" +version = "0.7.2" edition = "2024" license = "MIT"