petercat-ai / petercat

A conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories
https://petercat.ai
MIT License
618 stars 18 forks source link

fix: installation callback logic #398

Closed RaoHai closed 2 months ago

RaoHai commented 2 months ago
vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2024 10:40am
petercat-assistant[bot] commented 2 months ago

Walkthrough

修复了安装回调逻辑,移除了不必要的打印语句,并更新了模型字段的默认值。

Changes

文件 摘要
server/core/dao/authorizationDAO.py, server/core/dao/repositoryConfigDAO.py 移除了不必要的打印语句
server/core/models/authorization.py 更新了 Authorization 模型,添加了可选字段和默认值
server/core/models/repository.py 更新了 RepositoryConfig 模型,添加了可选字段和默认值
server/github_app/router.py 修复了安装回调逻辑,移除了不必要的打印语句,并更新了相关方法
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 61.11111% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/github_app/router.py 28.57% 5 Missing :warning:
server/core/dao/repositoryConfigDAO.py 33.33% 2 Missing :warning:
Files with missing lines Coverage Δ
server/core/dao/authorizationDAO.py 36.00% <ø> (+1.38%) :arrow_up:
server/core/models/authorization.py 85.00% <100.00%> (ø)
server/core/models/repository.py 100.00% <100.00%> (ø)
server/core/dao/repositoryConfigDAO.py 37.03% <33.33%> (+1.03%) :arrow_up:
server/github_app/router.py 40.84% <28.57%> (-0.59%) :arrow_down:

... and 1 file with indirect coverage changes