feat: 增加发布策略校验

- projects: 为环境补充 releasePolicy 和 refPattern,区分 branch、tag、master 发布策略
- deploy-runs: 创建发布单前校验项目状态、环境和 ref 规则
- repository: 数据库读取路径补齐发布策略推断
This commit is contained in:
湛兮
2026-06-11 21:27:20 +08:00
parent 163f411485
commit 902817788d
6 changed files with 251 additions and 17 deletions
@@ -19,6 +19,8 @@ describe('DeployExecutionService', () => {
name: 'test',
displayName: '测试环境',
jenkinsJobPath: 'my-project-dev/test-access-manage-develop',
releasePolicy: 'branch',
refPattern: '^(develop|feature/.+|hotfix/.+)$',
},
],
};