(pr_payload)
return changelog_labels
Fetch the labels from the PR and process the ones related to the changelog.
Fetch the labels from the PR and process the ones related to the changelog.
Fetch the labels from the PR and process the ones related to the changelog .
def get_changelog_types(pr_payload):
    """
    Fetch the labels from the PR and process the ones related to the changelog.
    """
    changelog_labels = []
    for name in get_pr_labels(pr_payload):
        if name.startswith(CHANGELOG_LABEL_PREFIX):
            # only add the name, e.g. for `changelog/Added` it's just `Added`
            changelog_labels.append(name.split(CHANGELOG_LABEL_PREFIX)[1])

    return changelog_labels
def get_changelog_types ( pr_payload ) : changelog_labels = [ ] for name in get_pr_labels ( pr_payload ) : if name . startswith ( CHANGELOG_LABEL_PREFIX ) : # only add the name, e.g. for `changelog/Added` it's just `Added` changelog_labels . append ( name . split ( CHANGELOG_LABEL_PREFIX ) [ 1 ] ) return changelog_labels