Skip to content

Commit

Permalink
Fix rearch CL
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 committed Dec 27, 2024
1 parent 934b48d commit 626ce22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/github/pr_changelog_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def get_pr_info(ctx, pr_number: int):

# Очищаем описание от комментариев и ищем текст изменений
description = re.sub(r"<!--.*?-->", "", description, flags=re.DOTALL)
match = re.search(r"(:cl:.*?)(\n|$)", description, re.DOTALL)
match = re.search(r"(:cl:.*?|\U0001F191.*?)(\n|$)", description, re.DOTALL)

if not match:
await ctx.send("❌ Не удалось найти описание изменений.")
Expand Down
2 changes: 1 addition & 1 deletion tasks/git_fetch_pull_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def fetch_merged_pull_requests():

# Очищаем описание от HTML-комментариев и ищем описание изменений
description = re.sub(r"<!--.*?-->", "", description, flags=re.DOTALL)
match = re.search(r"(:cl:.*?)(\n|$)", description, re.DOTALL)
match = re.search(r"(:cl:.*?|\U0001F191.*?)(\n|$)", description, re.DOTALL)

if not match:
print(f"⚠️ Описание изменений для PR #{pr['number']} не найдено.")
Expand Down

0 comments on commit 626ce22

Please sign in to comment.