(body: str)
return largest_match_type
Parse update type from a Renovate PR Body.

    Renovate can batch updates, so we need to report to largest update type of
    the batch. For example, if the batch contained a "minor" and "major" update,
    we'd return the larger of the two, "major".
Parse update type from a Renovate PR Body.
Parse update type from a Renovate PR Body .
def dep_versions_from_renovate_pr_body(body: str) -> MatchType | None:
    """
    Parse update type from a Renovate PR Body.

    Renovate can batch updates, so we need to report to largest update type of
    the batch. For example, if the batch contained a "minor" and "major" update,
    we'd return the larger of the two, "major".
    """
    largest_match_type: MatchType | None = None
    if "| lockFileMaintenance |" in body:
        largest_match_type = "patch"
    for match in renovate_body_regex.finditer(body):
        group = match.groupdict()
        if "old_version" not in group or "new_version" not in group:
            continue
        match_type = _compare_versions(group["old_version"], group["new_version"])
        if not match_type:
            continue
        if compare_match_type(match_type, largest_match_type):
            largest_match_type = match_type
    return largest_match_type
def dep_versions_from_renovate_pr_body ( body : str ) -> MatchType | None : largest_match_type : MatchType | None = None if "| lockFileMaintenance |" in body : largest_match_type = "patch" for match in renovate_body_regex . finditer ( body ) : group = match . groupdict ( ) if "old_version" not in group or "new_version" not in group : continue match_type = _compare_versions ( group [ "old_version" ] , group [ "new_version" ] ) if not match_type : continue if compare_match_type ( match_type , largest_match_type ) : largest_match_type = match_type return largest_match_type