def METHOD_NAME(self, repo_id, org_id=''):
    # get repos shared to group
    if not org_id:
        sql = f"""
        SELECT
            s.repo_id, s.user_name, s.group_id, s.permission
        FROM
            {self.db_name}.RepoGroup s
        WHERE
            repo_id = '{repo_id}';
        """
    else:
        sql = f"""
        SELECT
            s.repo_id, s.owner, s.group_id, s.permission
        FROM
            {self.db_name}.OrgGroupRepo s
        WHERE
            repo_id = '{repo_id}';
        """
    share_info_list = []
    with connection.cursor() as cursor:
        cursor.execute(sql)
        for item in cursor.fetchall():
            info = {}
            info['share_type'] = 'group'
            info['repo_id'] = item[0]
            info['path'] = '/'
            info['share_from'] = item[1]
            info['share_to'] = item[2]
            info['permission'] = item[3]
            share_info_list.append(info)
    return share_info_list