Skip to content

Commit

Permalink
fix: 修复测试
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jan 29, 2024
1 parent 0a9552f commit 1cc3537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/

## [Unreleased]

### Fixed

- 等待 2 分钟后再触发 registry_update

## [3.2.0] - 2023-10-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/publish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def handle_pr_close(
# 如果商店更新则触发 registry 更新
if event.payload.pull_request.merged:
# GitHub 的缓存一般 2 分钟左右会刷新
await asyncio.sleep(delay=120)
await asyncio.sleep(120)
await trigger_registry_update(bot, repo_info, publish_type, issue)
else:
logger.info("拉取请求未合并,跳过触发商店列表更新")
Expand Down

0 comments on commit 1cc3537

Please sign in to comment.