Enhancement: support doc_id placeholder in workflow templates (#11847)

This commit is contained in:
shamoon
2026-01-21 16:05:19 -08:00
committed by GitHub
parent c06e1e7cba
commit 32b236cfa2
5 changed files with 18 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ def parse_w_workflow_placeholders(
created: date | None = None,
doc_title: str | None = None,
doc_url: str | None = None,
doc_id: int | None = None,
) -> str:
"""
Available title placeholders for Workflows depend on what has already been assigned,
@@ -79,6 +80,8 @@ def parse_w_workflow_placeholders(
formatting.update({"doc_title": doc_title})
if doc_url is not None:
formatting.update({"doc_url": doc_url})
if doc_id is not None:
formatting.update({"doc_id": str(doc_id)})
logger.debug(f"Parsing Workflow Jinja template: {text}")
try: