Upgrading
- Regenerate CODEOWNERS if you use file annotations. The "Annotations at the top of file" section is now written last, so GitHub's review routing agrees with
for_file(rubyatscale/codeowners-rs#130). It's a pure reordering. Repos without file annotations are unaffected.bin/codeownership validateautocorrects and stages it; CI that passes--skip-autocorrectwill fail, with the diff, until the regenerated file is committed. validateis stricter. It now reports.codeownerfiles that name an unregistered team (rubyatscale/codeowners-rs#116). Its error headline changed from "Found invalid team annotations" to "Found invalid team references", so anything matching on that text needs updating.- gitignore no longer hides tracked files from validation (rubyatscale/codeowners-rs#110), so
validatemay flag files it used to skip. for_file(..., from_codeowners: false)honorsmetadata.ownerin a Rubypackage.yml(#141). It also returns no package owner for apackage.ymlwith conflicting or malformed owners, instead of falling through to an enclosing package (rubyatscale/codeowners-rs#131). In that case it now also prints the error to stderr.- Team files are loaded once per process for
for_file(..., from_codeowners: false), making lookups much faster. CallCodeOwnership.bust_caches!after changing team files in a long-lived process.
CodeOwnership v2.2.0
📦 Published Gems
- Source gem: code_ownership-2.2.0.gem
- Platform gems: Published for all supported platforms
🎯 Supported Platforms
- aarch64-linux-musl
- aarch64-linux
- aarch64-mingw-ucrt
- arm64-darwin
- x64-mingw-ucrt
- x86_64-darwin
- x86_64-linux-musl
- x86_64-linux
What's Changed
- Add explicit GITHUB_TOKEN permissions to workflows by @dduugg in #177
- Bump .ruby-version to 4.0.7 by @dduugg in #178
- Update codeowners-rs to v0.5.0 and clear its team cache in bust_caches! by @dduugg in #179
- Exclude arm-linux-musl from native gem builds by @dduugg in #180
Full Changelog: v2.1.4...v2.2.0