def repo_group_membership(self, repo):
        """Returns list of repo group membership for repo"""

        membership = []
        for repo_group, data in self.repo_groups.items():
            try:
                group_members = data['members']
            except __HOLE__:
                continue
            if repo in group_members:
                if repo not in membership:
                    membership.append(repo_group)

        # Add global repo group if repo is in any other group
        # and the global membership group exists
        if membership and '*' in self.repo_groups:
            membership.append('*')

        logging.debug('{0} is a member of {1}'.format(repo, membership))
        return membership
dataset/ETHPy150Open aelse/cpthook/cpthook.py/CptHookConfig.repo_group_membership