-
Notifications
You must be signed in to change notification settings - Fork 73
feat: AI Agent 应用可以切换为源码部署 #2558
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for switching AI Agent applications to use regular version control systems and corrects the audit target for repository modifications.
- Enables AI Agent applications to switch to source code repository deployment by automatically changing their source origin to AUTHORIZED_VCS
- Fixes the audit operation target from APP_DOMAIN to BUILD_CONFIG for repository modifications
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # AI agent 应用切换源码仓库后,需要将该应用来源更改为 Authorized VCS | ||
| # 切换到源码部署模式之后, 不可再切换为包部署模式 | ||
| module.source_origin = SourceOrigin.AUTHORIZED_VCS | ||
| module.save(update_fields=["source_origin"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
这个修改后,测试过部署、沙箱开发、访问管理等功能正常吗?
-
这个 API 看下是否有单测,没有的话可以补充一下。把这些场景都包括:
- 外链应用无法修改
- 镜像应用修改
- 源码应用修改
- AI agent 应用修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修改后, 测试过相关功能, 暂时没有发现问题, 均正常工作
已添加 单测
No description provided.