Skip to content

Commit f5ca03d

Browse files
committed
fixed annotations
1 parent 72a3a0e commit f5ca03d

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/release/partial_release.py

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,27 @@ def main(ctx):
3535
pass
3636

3737

38+
@main.command()
39+
@click.option(
40+
"--artifact-ids",
41+
required=True,
42+
type=str,
43+
help="""
44+
Artifact IDs whose version needs to update, separated by comma.
45+
""",
46+
)
47+
@click.option(
48+
"--versions",
49+
required=False,
50+
default="./versions.txt",
51+
type=str,
52+
help="""
53+
The path to the versions.txt.
54+
""",
55+
)
56+
def bump_snapshot_version(artifact_ids: str, versions: str) -> None:
57+
bump_version(artifact_ids, "snapshot", versions)
58+
3859
@main.command()
3960
@click.option(
4061
"--artifact-ids",
@@ -62,11 +83,6 @@ def main(ctx):
6283
The path to the versions.txt.
6384
""",
6485
)
65-
66-
def bump_snapshot_version(artifact_ids: str, version_type: str, versions: str) -> None:
67-
# version_type is ignored for snapshot version bumping.
68-
bump_version(artifact_ids, "snapshot", versions)
69-
7086
def bump_released_version(artifact_ids: str, version_type: str, versions: str) -> None:
7187
bump_version(artifact_ids, version_type, versions)
7288

0 commit comments

Comments
 (0)