mirror of https://github.com/tiangolo/fastapi.git
🔨 Resolve Pydantic deprecation warnings in internal script (#13696)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
parent
6e11a2d1c4
commit
7c04182724
|
|
@ -27,7 +27,7 @@ if settings.debug:
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
else:
|
else:
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
logging.debug(f"Using config: {settings.json()}")
|
logging.debug(f"Using config: {settings.model_dump_json()}")
|
||||||
g = Github(settings.token.get_secret_value())
|
g = Github(settings.token.get_secret_value())
|
||||||
repo = g.get_repo(settings.github_repository)
|
repo = g.get_repo(settings.github_repository)
|
||||||
for pr in repo.get_pulls(state="open"):
|
for pr in repo.get_pulls(state="open"):
|
||||||
|
|
@ -48,7 +48,7 @@ for pr in repo.get_pulls(state="open"):
|
||||||
]
|
]
|
||||||
config = settings.config or default_config
|
config = settings.config or default_config
|
||||||
for approved_label, conf in config.items():
|
for approved_label, conf in config.items():
|
||||||
logging.debug(f"Processing config: {conf.json()}")
|
logging.debug(f"Processing config: {conf.model_dump_json()}")
|
||||||
if conf.await_label is None or (conf.await_label in pr_label_by_name):
|
if conf.await_label is None or (conf.await_label in pr_label_by_name):
|
||||||
logging.debug(f"Processable PR: {pr.number}")
|
logging.debug(f"Processable PR: {pr.number}")
|
||||||
if len(approved_reviews) >= conf.number:
|
if len(approved_reviews) >= conf.number:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue