mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 04:42:24 +00:00
Add owner-gated fleet evolution
This commit is contained in:
1 parent
acb4dc401d
commit
d1cd79cccb
22 files changed
+888
-11
No files matched your search
@@ -78,6 +78,7 @@ export function observeProject({ repositoryRoot, env = process.env, now = () =>
|
||||
checks: { definitions: config.checks ?? [], receipts: [] },
|
||||
resources: { definitions: config.resources ?? [], holders: [], waiters: [] },
|
||||
integration: [],
|
||||
fleetChanges: [],
|
||||
schedules: config.schedules ?? [],
|
||||
audit: [],
|
||||
contextLocality: {
|
||||
@@ -135,6 +136,13 @@ export function observeProject({ repositoryRoot, env = process.env, now = () =>
|
||||
SELECT id, source_area AS sourceArea, source_commit AS sourceCommit, target_branch AS targetBranch, state, reason, updated_at AS updatedAt
|
||||
FROM integration_requests ORDER BY updated_at DESC LIMIT 40
|
||||
`);
|
||||
result.fleetChanges = rows(database, 'fleet_changes', `
|
||||
SELECT id, state, proposer, json_extract(domain_json, '$.id') AS domainId,
|
||||
json_extract(domain_json, '$.title') AS title,
|
||||
json_extract(expected_benefit_json, '$.summary') AS expectedBenefit,
|
||||
approved_by AS approvedBy, updated_at AS updatedAt
|
||||
FROM fleet_changes ORDER BY updated_at DESC, id LIMIT 40
|
||||
`);
|
||||
result.audit = rows(database, 'audit_events', `
|
||||
SELECT id, actor_id AS actorId, operation, entity_type AS entityType, entity_id AS entityId, created_at AS createdAt
|
||||
FROM audit_events ORDER BY created_at DESC LIMIT 30
|
||||
|
||||
Reference in new issue
Block a user