Skip to content

Add CODEOWNERS file to automatically request reviews and speed up PR review time #11646

@jbampton

Description

@jbampton

The required feature described as a wish

Code owners are automatically requested for review when someone opens a pull request that modifies code that they own. Code owners are not automatically requested to review draft pull requests.

The people you choose as code owners must have write permissions for the repository. When the code owner is a team, that team must be visible and it must have write permissions, even if all the individual members of the team already have write permissions directly, through organization membership, or through another team membership.

So some of the other ASF project are using CODEOWNERS like Apache Airflow and it works really well as it auto requests the people you need to review specific code / files / directories.

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

https://github.com/apache/airflow/blob/main/.github/CODEOWNERS

So a great example of this CODEOWNERS file in action is at this next link:

apache/airflow#55688

And shown here in the attached images we have the CODEOWNERS with the "shields" being auto requested to provide a review.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions