From 7e79d5424f0c1e36a3c01f69af6c0bb0fae5eb9b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 12 Mar 2026 22:17:30 -0400 Subject: [PATCH] fix --- .github/workflows/sync-docs-discourse.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/sync-docs-discourse.yml b/.github/workflows/sync-docs-discourse.yml index 57e5411c49..43561510d7 100644 --- a/.github/workflows/sync-docs-discourse.yml +++ b/.github/workflows/sync-docs-discourse.yml @@ -67,6 +67,11 @@ jobs: config = DiscourseConfig.from_env() client = DiscourseClient(config) + + def category_id_for(path: str) -> int: + top_level = path.split('/')[0] + return config.category_mapping.get(top_level, config.category_mapping.get('documentation', 114)) + category_id = category_id_for(DOC_PATH) print(f'Category ID: {category_id}')