A long-lived project that still receives updates
A ruby interface that determines file ownership for git repositories
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
~> 0.9.63
>= 0

Runtime

 Project Readme

fast_code_owners

A thin Ruby wrapper around codeowners-rs

Why?

The codeowners-rs CLI is a fast alternative to the Ruby gem code_ownership. However, since codeowners-rs is written in Rust, it can't provide direct Ruby APIs.

fast_code_owners provides Ruby APIs that delegate to codeowners-rs. Much of this code was lifted from code_ownership.

Installation

gem install fast_code_owners

Usage

require 'fast_code_owners'

# Find the owning team for the provided file path
team = FastCodeOwners.for_file('path/to/file.rb')

# Find the owning team for the provided class
team = FastCodeOwners.for_class(MyClass)

# Find the owning team for the provided packwerk/pks package.yml
team = FastCodeOwners.for_package('packs/foo/package.yml')

# Find the owning team for the provided error backtrace
teams = FastCodeOwners.for_backtrace(error.backtrace)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rubyatscale/fast_code_owners.