def METHOD_NAME(
    self, current_commit: str, update_release: bool, release_suffix: Optional[str]
) -> Optional[str]:
    old_release = self.up.specfile.expanded_release
    if release_suffix:
        return f"{old_release}.{release_suffix}"
    if not update_release:
        return None
    try:
        old_release_int = int(old_release)
        new_release = str(old_release_int + 1)
    except ValueError:
        new_release = str(old_release)
    return f"{new_release}.g{current_commit}"