• Kerri Miller's avatar
    Add project.group to list when specified as owner · 6dd84efd
    Kerri Miller authored
    This addresses an issue that arises when the owner of a path is the
    group under which the project lives (such as `@gitlab-org` for the
    Gitlab project..) Gitlab::CodeOwners::GroupsLoader did not add that
    group to the list of groups when attempting to determine ownership. This
    list of groups is expanded into a list of users that the user
    attempting the action (typically a merge) is compared to. Sinc the
    project's group is not added to the group list, its members are not
    expanded and are thus missing from the list of owners for a given path.
    6dd84efd
loader_spec.rb 5.63 KB