@postman-cse/onboarding-repo-sync 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs +16 -0
- package/dist/cli.cjs +16 -0
- package/dist/index.cjs +16 -0
- package/package.json +1 -1
package/dist/action.cjs
CHANGED
|
@@ -129101,6 +129101,19 @@ async function runRepoSyncInner(inputs, dependencies) {
|
|
|
129101
129101
|
`System environment association failed: ${error2 instanceof Error ? error2.message : String(error2)}`
|
|
129102
129102
|
);
|
|
129103
129103
|
}
|
|
129104
|
+
} else if (Object.keys(envUids).length > 0) {
|
|
129105
|
+
const configuredKeys = Object.keys(inputs.systemEnvMap).filter(
|
|
129106
|
+
(key) => Boolean(String(inputs.systemEnvMap[key] ?? "").trim())
|
|
129107
|
+
);
|
|
129108
|
+
if (configuredKeys.length === 0) {
|
|
129109
|
+
dependencies.core.warning(
|
|
129110
|
+
'system-env-map-json is empty while environment-sync-enabled is true. Workspace\u2194git linking still registers the service in API Catalog, but Catalog system-environment filters (Prod/Stage/Dev) hide services until Postman environments are associated. Pass system-env-map-json like {"prod":"<system-env-uuid>"} or clear the Catalog system-environment filter to see the service.'
|
|
129111
|
+
);
|
|
129112
|
+
} else {
|
|
129113
|
+
dependencies.core.warning(
|
|
129114
|
+
`system-env-map-json keys (${configuredKeys.join(", ")}) did not match any synced environment (${Object.keys(envUids).join(", ")}). No system-environment associations were made; Catalog system-environment filters may hide this service.`
|
|
129115
|
+
);
|
|
129116
|
+
}
|
|
129104
129117
|
}
|
|
129105
129118
|
}
|
|
129106
129119
|
if (inputs.workspaceId && inputs.baselineCollectionId && Object.keys(envUids).length > 0) {
|
|
@@ -129192,6 +129205,9 @@ async function runRepoSyncInner(inputs, dependencies) {
|
|
|
129192
129205
|
inputs.repoUrl
|
|
129193
129206
|
);
|
|
129194
129207
|
outputs["workspace-link-status"] = "success";
|
|
129208
|
+
dependencies.core.info(
|
|
129209
|
+
`workspace-link-status=success workspace-id=${inputs.workspaceId} repo=${inputs.repoUrl}`
|
|
129210
|
+
);
|
|
129195
129211
|
} catch (error2) {
|
|
129196
129212
|
outputs["workspace-link-status"] = "failed";
|
|
129197
129213
|
dependencies.core.warning(
|
package/dist/cli.cjs
CHANGED
|
@@ -127015,6 +127015,19 @@ async function runRepoSyncInner(inputs, dependencies) {
|
|
|
127015
127015
|
`System environment association failed: ${error instanceof Error ? error.message : String(error)}`
|
|
127016
127016
|
);
|
|
127017
127017
|
}
|
|
127018
|
+
} else if (Object.keys(envUids).length > 0) {
|
|
127019
|
+
const configuredKeys = Object.keys(inputs.systemEnvMap).filter(
|
|
127020
|
+
(key) => Boolean(String(inputs.systemEnvMap[key] ?? "").trim())
|
|
127021
|
+
);
|
|
127022
|
+
if (configuredKeys.length === 0) {
|
|
127023
|
+
dependencies.core.warning(
|
|
127024
|
+
'system-env-map-json is empty while environment-sync-enabled is true. Workspace\u2194git linking still registers the service in API Catalog, but Catalog system-environment filters (Prod/Stage/Dev) hide services until Postman environments are associated. Pass system-env-map-json like {"prod":"<system-env-uuid>"} or clear the Catalog system-environment filter to see the service.'
|
|
127025
|
+
);
|
|
127026
|
+
} else {
|
|
127027
|
+
dependencies.core.warning(
|
|
127028
|
+
`system-env-map-json keys (${configuredKeys.join(", ")}) did not match any synced environment (${Object.keys(envUids).join(", ")}). No system-environment associations were made; Catalog system-environment filters may hide this service.`
|
|
127029
|
+
);
|
|
127030
|
+
}
|
|
127018
127031
|
}
|
|
127019
127032
|
}
|
|
127020
127033
|
if (inputs.workspaceId && inputs.baselineCollectionId && Object.keys(envUids).length > 0) {
|
|
@@ -127106,6 +127119,9 @@ async function runRepoSyncInner(inputs, dependencies) {
|
|
|
127106
127119
|
inputs.repoUrl
|
|
127107
127120
|
);
|
|
127108
127121
|
outputs["workspace-link-status"] = "success";
|
|
127122
|
+
dependencies.core.info(
|
|
127123
|
+
`workspace-link-status=success workspace-id=${inputs.workspaceId} repo=${inputs.repoUrl}`
|
|
127124
|
+
);
|
|
127109
127125
|
} catch (error) {
|
|
127110
127126
|
outputs["workspace-link-status"] = "failed";
|
|
127111
127127
|
dependencies.core.warning(
|
package/dist/index.cjs
CHANGED
|
@@ -129116,6 +129116,19 @@ async function runRepoSyncInner(inputs, dependencies) {
|
|
|
129116
129116
|
`System environment association failed: ${error2 instanceof Error ? error2.message : String(error2)}`
|
|
129117
129117
|
);
|
|
129118
129118
|
}
|
|
129119
|
+
} else if (Object.keys(envUids).length > 0) {
|
|
129120
|
+
const configuredKeys = Object.keys(inputs.systemEnvMap).filter(
|
|
129121
|
+
(key) => Boolean(String(inputs.systemEnvMap[key] ?? "").trim())
|
|
129122
|
+
);
|
|
129123
|
+
if (configuredKeys.length === 0) {
|
|
129124
|
+
dependencies.core.warning(
|
|
129125
|
+
'system-env-map-json is empty while environment-sync-enabled is true. Workspace\u2194git linking still registers the service in API Catalog, but Catalog system-environment filters (Prod/Stage/Dev) hide services until Postman environments are associated. Pass system-env-map-json like {"prod":"<system-env-uuid>"} or clear the Catalog system-environment filter to see the service.'
|
|
129126
|
+
);
|
|
129127
|
+
} else {
|
|
129128
|
+
dependencies.core.warning(
|
|
129129
|
+
`system-env-map-json keys (${configuredKeys.join(", ")}) did not match any synced environment (${Object.keys(envUids).join(", ")}). No system-environment associations were made; Catalog system-environment filters may hide this service.`
|
|
129130
|
+
);
|
|
129131
|
+
}
|
|
129119
129132
|
}
|
|
129120
129133
|
}
|
|
129121
129134
|
if (inputs.workspaceId && inputs.baselineCollectionId && Object.keys(envUids).length > 0) {
|
|
@@ -129207,6 +129220,9 @@ async function runRepoSyncInner(inputs, dependencies) {
|
|
|
129207
129220
|
inputs.repoUrl
|
|
129208
129221
|
);
|
|
129209
129222
|
outputs["workspace-link-status"] = "success";
|
|
129223
|
+
dependencies.core.info(
|
|
129224
|
+
`workspace-link-status=success workspace-id=${inputs.workspaceId} repo=${inputs.repoUrl}`
|
|
129225
|
+
);
|
|
129210
129226
|
} catch (error2) {
|
|
129211
129227
|
outputs["workspace-link-status"] = "failed";
|
|
129212
129228
|
dependencies.core.warning(
|