Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bot deploy #420

Merged
merged 11 commits into from
Oct 11, 2024
Merged

feat: bot deploy #420

merged 11 commits into from
Oct 11, 2024

Conversation

ch-liuzhide
Copy link
Contributor

  1. Support creating issues for publishing robots to the market, support creating issues for deploying robots to websites, and support binding robots to repositories.
    image

image

Copy link

vercel bot commented Sep 27, 2024

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 Oct 11, 2024 6:39am

Copy link

Walkthrough

This PR introduces features to support creating issues for publishing robots to the market, deploying robots to websites, and binding robots to repositories.

Changes

File Summary
client/.kiwi/en/DeployBotModal.ts Added English translations for deployment-related UI text.
client/.kiwi/en/edit.ts Added new translation key for 'Save and Deploy'.
client/.kiwi/en/index.ts Included DeployBotModal in the English index file.
client/.kiwi/ja/DeployBotModal.ts Added Japanese translations for deployment-related UI text.
client/.kiwi/ja/edit.ts Added new translation key for 'Save and Deploy'.
client/.kiwi/ja/index.ts Included DeployBotModal in the Japanese index file.
client/.kiwi/ko/DeployBotModal.ts Added Korean translations for deployment-related UI text.
client/.kiwi/ko/edit.ts Added new translation key for 'Save and Deploy'.
client/.kiwi/ko/index.ts Included DeployBotModal in the Korean index file.
client/.kiwi/zh-CN/DeployBotModal.ts Added Simplified Chinese translations for deployment-related UI text.
client/.kiwi/zh-CN/edit.ts Added new translation key for 'Save and Deploy'.
client/.kiwi/zh-CN/index.ts Included DeployBotModal in the Simplified Chinese index file.
client/.kiwi/zh-TW/DeployBotModal.ts Added Traditional Chinese translations for deployment-related UI text.
client/.kiwi/zh-TW/edit.ts Added new translation key for 'Save and Deploy'.
client/.kiwi/zh-TW/index.ts Included DeployBotModal in the Traditional Chinese index file.
client/app/contexts/BotContext.tsx Added domain_whitelist to the bot context.
client/app/factory/edit/components/DeployBotModal/DeployContent.tsx Created DeployContent component for deployment UI.
client/app/factory/edit/components/DeployBotModal/DeployItem.tsx Created DeployItem component for deployment UI.
client/app/factory/edit/components/DeployBotModal/index.tsx Created DeployBotModal component for deployment UI.
client/app/factory/edit/components/DeployBotModal/types.ts Defined types for deployment components.
client/app/factory/edit/components/DeployBotModal/utils.ts Added utility functions for deployment components.
client/app/factory/edit/page.tsx Integrated DeployBotModal into the bot edit page.
client/app/hooks/useBot.ts Added hooks for bot deployment and approval.
client/app/hooks/useUser.ts Minor formatting changes.
client/app/interface/index.ts Added domain_whitelist to the bot interface.
client/app/services/BotsController.ts Added API functions for bot deployment and approval.
client/public/icons/DeploySuccessIcon.tsx Added icon for deployment success.
client/public/icons/SaveSuccessIcon.tsx Added icon for save success.
client/types/database.types.ts Added domain_whitelist to the bot database schema.
server/auth/get_user_info.py Minor formatting changes.
server/bot/router.py Added API endpoints for bot deployment and approval.
server/core/dao/botApprovalDAO.py Created DAO for bot approval.
server/core/dao/repositoryConfigDAO.py Created DAO for repository configuration.
server/core/models/bot.py Added models for bot deployment.
server/core/models/bot_approval.py Added models for bot approval.
server/core/models/repository.py Added models for repository configuration.
server/core/type_class/bot.py Added request and response types for bot deployment.
server/event_handler/issue.py Minor formatting changes.
server/github_app/router.py Added API endpoints for GitHub app integration.

server/bot/router.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 33.92857% with 148 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/bot/router.py 17.70% 79 Missing ⚠️
server/github_app/router.py 14.28% 36 Missing ⚠️
server/core/dao/botApprovalDAO.py 33.33% 18 Missing ⚠️
server/auth/get_user_info.py 12.50% 7 Missing ⚠️
server/core/dao/repositoryConfigDAO.py 50.00% 4 Missing ⚠️
server/core/models/bot_approval.py 88.46% 3 Missing ⚠️
server/core/models/repository.py 83.33% 1 Missing ⚠️
Files with missing lines Coverage Δ
server/core/models/bot.py 100.00% <100.00%> (ø)
server/core/type_class/bot.py 100.00% <100.00%> (ø)
server/event_handler/issue.py 29.41% <ø> (ø)
server/core/models/repository.py 92.30% <83.33%> (-7.70%) ⬇️
server/core/models/bot_approval.py 88.46% <88.46%> (ø)
server/core/dao/repositoryConfigDAO.py 38.23% <50.00%> (+1.19%) ⬆️
server/auth/get_user_info.py 26.41% <12.50%> (ø)
server/core/dao/botApprovalDAO.py 33.33% <33.33%> (ø)
server/github_app/router.py 35.95% <14.28%> (-4.90%) ⬇️
server/bot/router.py 20.10% <17.70%> (-4.34%) ⬇️

... and 7 files with indirect coverage changes

@xingwanying
Copy link
Contributor

image

server/bot/router.py Outdated Show resolved Hide resolved
server/bot/router.py Outdated Show resolved Hide resolved
server/bot/router.py Outdated Show resolved Hide resolved
server/bot/router.py Outdated Show resolved Hide resolved
server/bot/router.py Outdated Show resolved Hide resolved
server/bot/router.py Outdated Show resolved Hide resolved
server/bot/util.ts Outdated Show resolved Hide resolved
server/core/models/bot_approval.py Outdated Show resolved Hide resolved
@ch-liuzhide ch-liuzhide merged commit 90a2bc9 into main Oct 11, 2024
3 of 4 checks passed
@ch-liuzhide ch-liuzhide deleted the bindrepo branch October 11, 2024 06:38
@xingwanying xingwanying changed the title [feat]: bot deploy feat: bot deploy Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants