repo_settings

This commit is contained in:
mrT23
2024-02-21 18:23:34 +02:00
parent 048d90623f
commit 4d0f691b64
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def apply_repo_settings(pr_url):
git_provider = get_git_provider()(pr_url) git_provider = get_git_provider()(pr_url)
repo_settings = git_provider.get_repo_settings() repo_settings = git_provider.get_repo_settings()
try: try:
context.set("repo_settings", repo_settings) context["repo_settings"] = repo_settings
except Exception: except Exception:
pass pass

View File

@ -92,7 +92,7 @@ async def handle_request(body: Dict[str, Any], event: str):
if "comment" not in body: if "comment" not in body:
return {} return {}
comment_body = body.get("comment", {}).get("body") comment_body = body.get("comment", {}).get("body")
if not comment_body.lsstrip().startswith("/"): if comment_body and isinstance(comment_body, str) and not comment_body.lstrip().startswith("/"):
get_logger().info("Ignoring comment not starting with /") get_logger().info("Ignoring comment not starting with /")
return {} return {}
if sender and bot_user in sender: if sender and bot_user in sender: