docs and fixes

This commit is contained in:
mrT23
2024-09-10 20:06:48 +03:00
parent 1451d82d6b
commit 09b0a04a47
5 changed files with 77 additions and 10 deletions

View File

@ -938,7 +938,10 @@ def is_value_no(value):
return False
def process_description(description_full: str):
def process_description(description_full: str) -> Tuple[str, List]:
if not description_full:
return "", []
split_str = "### **Changes walkthrough** 📝"
description_split = description_full.split(split_str)
base_description_str = description_split[0]

View File

@ -79,8 +79,8 @@ async def is_valid_notification(notification, headers, handled_ids, session, use
pr_url = notification['subject']['url']
latest_comment = notification['subject']['latest_comment_url']
if not latest_comment or not isinstance(latest_comment, str):
get_logger().debug(f"not latest_comment, but its ok")
# continue
get_logger().debug(f"no latest_comment")
return False, handled_ids
async with session.get(latest_comment, headers=headers) as comment_response:
check_prev_comments = False
if comment_response.status == 200: