def METHOD_NAME(issue):
    component = None
    type_ = 'enhancement'
    for label in issue['labels']:
        if label['color'] == COMPONENT_COLOR and not component:
            component = label['name']
            next
        elif label['name'].lower() == 'enhancement':
            type_ = 'enhancement'
        elif label['name'].lower() == 'bug':
            type_ = 'bug'
        elif label['name'].lower() == 'feature':
            type_ = 'feature'
    return component, type_