mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-01 18:31:55 +00:00
Add gated delivery lifecycle
This commit is contained in:
1 parent
73a4251054
commit
5a06debfef
13 files changed
+671
-3
No files matched your search
@@ -98,6 +98,21 @@ export const projectConfigSchema = z.object({
|
||||
required_checks: textList,
|
||||
landing_authority: textList.min(1),
|
||||
}).strict(),
|
||||
delivery: z.object({
|
||||
authority: z.object({
|
||||
implemented: textList.min(1),
|
||||
verified: textList.min(1),
|
||||
integrated: textList.min(1),
|
||||
release_ready: textList.min(1),
|
||||
released: textList.min(1),
|
||||
deployed: textList.min(1),
|
||||
live_verified: textList.min(1),
|
||||
}).strict(),
|
||||
adapters: z.object({
|
||||
release: z.object({ provider: text }).passthrough(),
|
||||
deployment: z.object({ provider: text }).passthrough(),
|
||||
}).strict(),
|
||||
}).strict(),
|
||||
session_manager: z.object({
|
||||
id: z.literal('session-manager'),
|
||||
runtime: text,
|
||||
|
||||
@@ -79,6 +79,21 @@ function initialFiles({ repository, projectId, createdAt, proposal, runtimes })
|
||||
required_checks: (proposal.checks ?? []).map((check) => check.id),
|
||||
landing_authority: ['session-manager'],
|
||||
},
|
||||
delivery: {
|
||||
authority: {
|
||||
implemented: ['$source'],
|
||||
verified: ['$source', 'session-manager'],
|
||||
integrated: ['session-manager'],
|
||||
release_ready: ['session-manager'],
|
||||
released: ['owner'],
|
||||
deployed: ['owner'],
|
||||
live_verified: ['owner'],
|
||||
},
|
||||
adapters: {
|
||||
release: { provider: 'none' },
|
||||
deployment: { provider: 'none' },
|
||||
},
|
||||
},
|
||||
session_manager: {
|
||||
id: 'session-manager', runtime: proposal.session_manager?.runtime ?? 'claude', start_last: true,
|
||||
branch: proposal.session_manager?.branch ?? null,
|
||||
|
||||
Reference in new issue
Block a user