Skip to content

Commit

Permalink
fix(github/config): 修复 pre_commit 配置在 registry 中不存在导致报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Nov 27, 2024
1 parent 26882c0 commit a8b53c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions src/plugins/github/plugins/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ async def check_rule(
)


@config_check_matcher.handle(
parameterless=[Depends(bypass_git), Depends(install_pre_commit_hooks)]
)
@config_check_matcher.handle(parameterless=[Depends(bypass_git)])
async def handle_remove_check(
bot: GitHubBot,
installation_id: int = Depends(get_installation_id),
Expand Down
5 changes: 0 additions & 5 deletions tests/github/config/process/test_config_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ async def test_process_config_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "fetch", "origin", "results"], check=True, capture_output=True
),
Expand Down

0 comments on commit a8b53c3

Please sign in to comment.