nex_docus/docs/sdd/integrations/git.md

19 lines
671 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 集成:项目 Git 仓库DV-0010 支撑)
## 能力
- 项目可绑定 Git 仓库(`project_git_repos`name、repo_url、branch、username、token、is_default
- 支持 `git pull` / `git push`
## 接口
- `GET/POST /api/v1/projects/{id}/git-repos`
- `PUT/DELETE /api/v1/projects/{id}/git-repos/{repo_id}`
- `POST /api/v1/projects/{id}/git/pull`
- `POST /api/v1/projects/{id}/git/push`
## 安全
- 凭据token/密码)以字段存储于 `project_git_repos.token`;注意避免日志泄露(关联 OI-1/NFR-9 敏感信息治理)。
## 关联
DV-0010, ADR-0006文件系统与外部仓库的边界分享/同步策略见具体实现)。