Skip to content

Support for declaring CODEOWNERS file location in the config file #94

@Envek

Description

@Envek

Context: pre-2.0 versions of the code_ownership Ruby gem had ability to specify custom path to directory that contains CODEOWNERS file in the config/code_ownership.yml as GitHub supports it in a few places: either .github/, docs/, or root.

This feature was added in rubyatscale/code_ownership#114 and (probably accidentally) removed in rubyatscale/code_ownership#126 during migration to the codeowners-rs.

See rubyatscale/code_ownership#158

However, codeowners-rs doesn't have even declared codeowners_path in the config file (src/config.rs). Moreover for library usage it requires to explicitly pass path to CODEOWNERS location to the RunConfig:

pub codeowners_file_path: PathBuf,
Also, default path is hardcoded in a few places.

Question: do you want/plan to reimplement support for config-specified CODEOWNERS path?

I will be happy to make a pull request if so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions