Skip to content

Conversation

@xogas
Copy link
Collaborator

@xogas xogas commented Nov 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 10, 2025 06:33
Copy link
Contributor

Copilot AI left a 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"])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 这个修改后,测试过部署、沙箱开发、访问管理等功能正常吗?

  2. 这个 API 看下是否有单测,没有的话可以补充一下。把这些场景都包括:

  • 外链应用无法修改
  • 镜像应用修改
  • 源码应用修改
  • AI agent 应用修改

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改后, 测试过相关功能, 暂时没有发现问题, 均正常工作

已添加 单测

@xogas xogas requested a review from jiayuan929 November 11, 2025 07:52
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