mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 08:02:43 +00:00
feat(hub): send item path when publishing a project to the hub
Include each item's newPath in the script/flow/app/raw_app publish payloads so the hub can store the relocated Windmill path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
017b7abbb6
commit
77005d67a1
@@ -706,6 +706,7 @@
|
||||
language: it.language,
|
||||
schema: it.schema ?? undefined,
|
||||
lockfile: it.lock ?? undefined,
|
||||
path: it.newPath,
|
||||
project_slug: slug
|
||||
})
|
||||
if (typeof resp?.id === 'number') hubItemIds = { ...hubItemIds, [key]: resp.id }
|
||||
@@ -718,6 +719,7 @@
|
||||
schema: it.schema ?? undefined
|
||||
},
|
||||
apps: [],
|
||||
path: it.newPath,
|
||||
project_slug: slug
|
||||
})
|
||||
if (typeof resp?.id === 'number') hubItemIds = { ...hubItemIds, [key]: resp.id }
|
||||
@@ -727,6 +729,7 @@
|
||||
apps: [],
|
||||
summary: it.summary || it.newPath,
|
||||
description: undefined,
|
||||
path: it.newPath,
|
||||
project_slug: slug
|
||||
})
|
||||
} else if (it.kind === 'raw_app') {
|
||||
@@ -734,6 +737,7 @@
|
||||
raw: it.content ?? '',
|
||||
apps: [],
|
||||
summary: it.summary || it.newPath,
|
||||
path: it.newPath,
|
||||
description: undefined,
|
||||
project_slug: slug
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user