Skip to content

Commit 3ee03b4

Browse files
authored
fix: update tag_format to the correct format (#14557)
Thid PR fixes the the formatting of `tag_format` field of a library in `state.yaml`.
1 parent cb583ad commit 3ee03b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.generator/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _add_new_library_tag_format(library_config: Dict) -> None:
164164
library_config(Dict): The library configuration.
165165
"""
166166
if "tag_format" not in library_config:
167-
library_config["tag_format"] = "{{id}}-v{{version}}"
167+
library_config["tag_format"] = "{id}-v{version}"
168168

169169

170170
def _get_new_library_config(request_data: Dict) -> Dict:

.generator/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def test_prepare_new_library_config(mocker):
347347
in prepared_config["preserve_regex"]
348348
)
349349
assert prepared_config["remove_regex"] == ["packages/google-cloud-language"]
350-
assert prepared_config["tag_format"] == "{{id}}-v{{version}}"
350+
assert prepared_config["tag_format"] == "{id}-v{version}"
351351
assert prepared_config["version"] == "0.0.0"
352352

353353

0 commit comments

Comments
 (0)