def METHOD_NAME(commit):
    teams = []
    title = commit.title
    url = commit.url
    next_tag = None
    category = None
    regression = ''
    pull_request = commit.pull_request
    if pull_request:
        teams = [label.rpartition('/')[-1] for label in pull_request.labels if label.startswith('team')]
        if not teams and pull_request.repo == 'integrations-core':
            teams = ['agent-integrations']
        title = pull_request.title
        url = pull_request.url
        category = [label.rpartition('/')[-1] for label in pull_request.labels if label.startswith('category')]
        category = category[0] if category else ''
        if any(label == 'bugfix/regression' for label in pull_request.labels):
            regression = 'yes'
    if commit.included_in_tag:
        next_tag = commit.included_in_tag.name
    return {
        'sha': commit.sha,
        'title': title,
        'url': url,
        'teams': ' & '.join(teams),
        'next_tag': next_tag,
        'category': category,
        'regression': str(regression),
    }