Skip to content

Commit

Permalink
Update def handle_pr_close
Browse files Browse the repository at this point in the history
先处理pr再触发registry更新
  • Loading branch information
eya46 authored Jan 29, 2024
1 parent 7ede4f5 commit b24f7b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/publish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ async def handle_pr_close(
)
logger.info(f"议题 #{related_issue_number} 已关闭")

# 如果商店更新则触发 registry 更新
if event.payload.pull_request.merged:
await trigger_registry_update(bot, repo_info, publish_type, issue)
else:
logger.info("拉取请求未合并,跳过触发商店列表更新")

try:
run_shell_command(
[
Expand All @@ -124,6 +118,12 @@ async def handle_pr_close(
else:
logger.info("发布的拉取请求未合并,已跳过")

# 如果商店更新则触发 registry 更新
if event.payload.pull_request.merged:
await trigger_registry_update(bot, repo_info, publish_type, issue)
else:
logger.info("拉取请求未合并,跳过触发商店列表更新")


async def check_rule(
event: IssuesOpened | IssuesReopened | IssuesEdited | IssueCommentCreated,
Expand Down

0 comments on commit b24f7b3

Please sign in to comment.