Skip to content

Commit 944e5ae

Browse files
committed
wip
1 parent a832fdb commit 944e5ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/release_tool/git_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pathlib import Path
1010
from typing import List, Optional, Tuple
1111
from git import Repo, Commit as GitCommit
12-
from .models import Commit, SemanticVersion
12+
from .models import Commit, SemanticVersion, VersionType
1313
from .template_utils import render_template, TemplateError
1414
from .config import ReleaseVersionPolicy
1515

@@ -509,7 +509,7 @@ def find_comparison_version_for_docs(
509509

510510
# For 'final-only' mode:
511511
# Both RCs and final versions compare against previous final version
512-
if target_type == target_version.get_type().RELEASE_CANDIDATE or target_version.is_final():
512+
if target_type == VersionType.RELEASE_CANDIDATE or target_version.is_final():
513513
# Find the previous final version
514514
final_versions = [v for v in earlier_versions if v.is_final()]
515515
if final_versions:

0 commit comments

Comments
 (0)