Skip to content

Commit

Permalink
fix: 修复发布流程检测判定与流程
Browse files Browse the repository at this point in the history
  • Loading branch information
BigOrangeQWQ committed Sep 9, 2024
1 parent 2fc48dd commit ec40040
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/publish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def check_rule(
event: IssuesOpened | IssuesReopened | IssuesEdited | IssueCommentCreated,
publish_type: PublishType | None = Depends(get_type_by_labels),
) -> bool:
logger.info(f"评论来自: {event.payload.sender.name}")
logger.info(f"评论来自: {event.payload.model_dump()}")
if (
isinstance(event, IssueCommentCreated)
and event.payload.comment.user
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/publish/render.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pathlib import Path

import jinja2
from nonebot import logger

from src.utils.validation.models import PublishType

Expand Down Expand Up @@ -64,6 +65,7 @@ async def render_comment(result: ValidationDict, reuse: bool = False) -> str:
[result.data.pop(key, None) for key in remove_keys]
if not result.data.get("tags", []):
result.data.pop("tags", None)
logger.info(result)

if result.type == PublishType.PLUGIN:
# https://github.com/he0119/action-test/actions/runs/4469672520
Expand Down

0 comments on commit ec40040

Please sign in to comment.