{"id":15293476,"url":"https://github.com/softprops/codeowners","last_synced_at":"2025-10-18T00:08:29.071Z","repository":{"id":57607637,"uuid":"97910321","full_name":"softprops/codeowners","owner":"softprops","description":"a rust crate for working with CODEOWNERS files","archived":false,"fork":false,"pushed_at":"2019-11-09T10:19:33.000Z","size":602,"stargazers_count":11,"open_issues_count":5,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T10:49:13.828Z","etag":null,"topics":["codeowners","github","ownership"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2017-07-21T05:44:35.000Z","updated_at":"2025-03-12T02:20:02.000Z","dependencies_parsed_at":"2022-08-30T05:22:33.439Z","dependency_job_id":null,"html_url":"https://github.com/softprops/codeowners","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcodeowners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcodeowners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcodeowners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcodeowners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/codeowners/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721136,"owners_count":21151051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeowners","github","ownership"],"created_at":"2024-09-30T16:48:54.843Z","updated_at":"2025-10-18T00:08:28.971Z","avatar_url":"https://github.com/softprops.png","language":"Rust","readme":"# codeowners [![Build Status](https://travis-ci.org/softprops/codeowners.svg?branch=master)](https://travis-ci.org/softprops/codeowners) [![Coverage Status](https://coveralls.io/repos/github/softprops/codeowners/badge.svg?branch=master)](https://coveralls.io/github/softprops/codeowners?branch=master) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE) [![crates.io](https://img.shields.io/crates/v/codeowners.svg)](https://crates.io/crates/codeowners) [![](https://github.com/softprops/codeowners/workflows/Main/badge.svg)](https://github.com/softprops/codeowners/actions)\n\n\u003e A Github [CODEOWNERS](https://help.github.com/articles/about-codeowners/) answer sheet\n\n[Documentation](https://softprops.github.io/codeowners)\n\n## installation\n\nAdd the following to your `Cargo.toml` filter\n\n```toml\n[dependencies]\ncodeowners = \"0.1\"\n```\n\n## Usage\n\nTypical use involves resolving a CODEOWNERS file, parsing it, then querying target paths\n\n```rust\nuse std::env;\n\nfn main() {\n  if let (Some(owners_file), Some(path)) =\n     (env::args().nth(1), env::args().nth(2)) {\n     let owners = codeowners::from_path(owners_file);\n     match owners.of(\u0026path) {\n       None =\u003e println!(\"{} is up for adoption\", path),\n       Some(owners) =\u003e {\n          for owner in owners {\n            println!(\"{}\", owner);\n          }\n       }\n     }\n  }\n}\n```\n\nDoug Tangren (softprops) 2017-2019\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fcodeowners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fcodeowners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fcodeowners/lists"}