Enhancement: add version label filename placeholder (#12185)

* Enhancement: add version label filename placeholder

* fix test

* add workflow placeholder

* docs and missing version_label

* typo

* fix consume placeholder

* update docs

* Apply suggestion from @shamoon

* fix None value

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Jan Kleine
2026-03-01 21:16:32 +01:00
committed by GitHub
parent a700928dd5
commit 82d8f48e9b
10 changed files with 61 additions and 5 deletions
+2
View File
@@ -41,6 +41,7 @@ def parse_w_workflow_placeholders(
doc_title: str | None = None,
doc_url: str | None = None,
doc_id: int | None = None,
version_label: str | None = None,
) -> str:
"""
Available title placeholders for Workflows depend on what has already been assigned,
@@ -62,6 +63,7 @@ def parse_w_workflow_placeholders(
"owner_username": owner_username,
"original_filename": Path(original_filename).stem,
"filename": Path(filename).stem,
"version_label": version_label or "",
}
if created is not None:
formatting.update(