@@ -127,11 +127,50 @@ def serve(
127127 """Start the interactive web dashboard server."""
128128 import uvicorn
129129
130+ from releasepilot .config .file_config import load_config
130131 from releasepilot .shared .logging import configure_root_logger
131132 from releasepilot .web .server import create_app
132133
133134 configure_root_logger (verbose )
134- config : dict [str , str ] = {"repo_path" : str (Path (repo ).resolve ())}
135+
136+ # Load project config file as base defaults (.releasepilot.json, etc.)
137+ repo_resolved = str (Path (repo ).resolve ())
138+ file_cfg = load_config (repo_resolved )
139+ config : dict [str , str ] = {"repo_path" : repo_resolved }
140+
141+ # File config provides defaults for fields not specified via CLI
142+ if file_cfg .app_name :
143+ config ["app_name" ] = file_cfg .app_name
144+ if file_cfg .audience :
145+ config ["audience" ] = file_cfg .audience
146+ if file_cfg .format :
147+ config ["format" ] = file_cfg .format
148+ if file_cfg .language :
149+ config ["language" ] = file_cfg .language
150+ if file_cfg .title :
151+ config ["title" ] = file_cfg .title
152+ if file_cfg .version :
153+ config ["version" ] = file_cfg .version
154+ if file_cfg .branch :
155+ config ["branch" ] = file_cfg .branch
156+ config ["show_authors" ] = str (file_cfg .show_authors ).lower ()
157+ config ["show_hashes" ] = str (file_cfg .show_hashes ).lower ()
158+ if file_cfg .accent_color :
159+ config ["accent_color" ] = file_cfg .accent_color
160+ if file_cfg .output_dir :
161+ config ["output_dir" ] = file_cfg .output_dir
162+ if file_cfg .overwrite :
163+ config ["overwrite" ] = "true"
164+ if file_cfg .repos :
165+ config ["repos" ] = "," .join (file_cfg .repos )
166+ if file_cfg .export_formats :
167+ config ["export_formats" ] = "," .join (file_cfg .export_formats )
168+ if not file_cfg .gitlab_ssl_verify :
169+ config ["gitlab_ssl_verify" ] = "false"
170+ if not file_cfg .github_ssl_verify :
171+ config ["github_ssl_verify" ] = "false"
172+
173+ # CLI args override file config
135174 if from_ref :
136175 config ["from_ref" ] = from_ref
137176 if to_ref and to_ref != "HEAD" :
0 commit comments