mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 20:00:41 +08:00
Initial commit - PR-Agent OSS release
This commit is contained in:
14
pr_agent/config_loader.py
Normal file
14
pr_agent/config_loader.py
Normal file
@ -0,0 +1,14 @@
|
||||
from os.path import abspath, dirname, join
|
||||
|
||||
from dynaconf import Dynaconf
|
||||
|
||||
current_dir = dirname(abspath(__file__))
|
||||
settings = Dynaconf(
|
||||
envvar_prefix=False,
|
||||
settings_files=[join(current_dir, f) for f in [
|
||||
"settings/.secrets.toml",
|
||||
"settings/configuration.toml",
|
||||
"settings/pr_reviewer_prompts.toml",
|
||||
"settings/pr_questions_prompts.toml"
|
||||
]]
|
||||
)
|
Reference in New Issue
Block a user