Skip to content

Commit

Permalink
fix(install): stringify owner_id (#459)
Browse files Browse the repository at this point in the history
fix(install): stringify ownerid
  • Loading branch information
ch-liuzhide authored Nov 12, 2024
1 parent 156ef2a commit c69b1b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions server/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ PeterCat 服务端,采用 FastAPI 框架开发。使用了 supabase 作为数
fastapi 最佳实践请参考 https://github.com/zhanymkanov/fastapi-best-practices


# 研发准备
- 安装 python3.10+,推荐使用 pyenv 管理 python 版本
- 安装 supabase CLI 工具 : https://supabase.com/docs/guides/cli/getting-started
- 安装 AWS CLI 工具 : https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/install-cliv2.html
- 联系官方添加你的 AWS 账号,以便使用 AWS CLI 工具。
- 安装完成后控制台输入 `aws sso login` 登陆。

# 功能模块
## 存储
采用 [supabase](https://supabase.com) 作为数据库进行存储。
Expand Down
2 changes: 1 addition & 1 deletion server/github_app/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def github_app_callback(code: str, installation_id: str, setup_action: str):
)
for repo in installed_repositories["repositories"]:
repository_config = RepositoryConfig(
owner_id=repo["owner"]["id"],
owner_id=str(repo["owner"]["id"]),
repo_name=repo["full_name"],
repo_id=repo["id"],
robot_id="",
Expand Down

0 comments on commit c69b1b6

Please sign in to comment.