@starterculture/devkeep-actions 0.5.0 → 0.5.1
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.
|
@@ -232,17 +232,15 @@ function currentRunUrl(env) {
|
|
|
232
232
|
// ../../modules/core/dist/ciEntrypoint.js
|
|
233
233
|
var VAULT_BRANCH = "main";
|
|
234
234
|
function healthParams(env) {
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (!projectName || !vaultRepo || !token) {
|
|
239
|
-
return null;
|
|
235
|
+
const missing = ["PROJECT_NAME", "VAULT_REPO", "DEVKEEP_GITHUB_TOKEN"].filter((name) => !env[name]);
|
|
236
|
+
if (missing.length > 0) {
|
|
237
|
+
return { missing: [...missing] };
|
|
240
238
|
}
|
|
241
|
-
const [owner, repo] =
|
|
239
|
+
const [owner, repo] = env.VAULT_REPO.split("/");
|
|
242
240
|
if (!owner || !repo) {
|
|
243
|
-
return
|
|
241
|
+
return { missing: ["VAULT_REPO (expected owner/repo)"] };
|
|
244
242
|
}
|
|
245
|
-
return { owner, repo, projectName, branch: VAULT_BRANCH };
|
|
243
|
+
return { params: { owner, repo, projectName: env.PROJECT_NAME, branch: VAULT_BRANCH } };
|
|
246
244
|
}
|
|
247
245
|
var defaultDeps = {
|
|
248
246
|
env: process.env,
|
|
@@ -253,7 +251,11 @@ var defaultDeps = {
|
|
|
253
251
|
exit: (code) => process.exit(code)
|
|
254
252
|
};
|
|
255
253
|
async function runCiEntrypoint(source, main2, deps = defaultDeps) {
|
|
256
|
-
const
|
|
254
|
+
const resolved = healthParams(deps.env);
|
|
255
|
+
const params = "params" in resolved ? resolved.params : null;
|
|
256
|
+
if (!params) {
|
|
257
|
+
deps.logError(`Health not recorded for "${source}": ${resolved.missing.join(", ")} not set.`);
|
|
258
|
+
}
|
|
257
259
|
const octokit = params ? deps.createGithubClient(deps.env.DEVKEEP_GITHUB_TOKEN) : null;
|
|
258
260
|
try {
|
|
259
261
|
await main2();
|
|
@@ -129,17 +129,15 @@ function currentRunUrl(env) {
|
|
|
129
129
|
// ../../modules/core/dist/ciEntrypoint.js
|
|
130
130
|
var VAULT_BRANCH = "main";
|
|
131
131
|
function healthParams(env) {
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (!projectName || !vaultRepo || !token) {
|
|
136
|
-
return null;
|
|
132
|
+
const missing = ["PROJECT_NAME", "VAULT_REPO", "DEVKEEP_GITHUB_TOKEN"].filter((name) => !env[name]);
|
|
133
|
+
if (missing.length > 0) {
|
|
134
|
+
return { missing: [...missing] };
|
|
137
135
|
}
|
|
138
|
-
const [owner, repo] =
|
|
136
|
+
const [owner, repo] = env.VAULT_REPO.split("/");
|
|
139
137
|
if (!owner || !repo) {
|
|
140
|
-
return
|
|
138
|
+
return { missing: ["VAULT_REPO (expected owner/repo)"] };
|
|
141
139
|
}
|
|
142
|
-
return { owner, repo, projectName, branch: VAULT_BRANCH };
|
|
140
|
+
return { params: { owner, repo, projectName: env.PROJECT_NAME, branch: VAULT_BRANCH } };
|
|
143
141
|
}
|
|
144
142
|
var defaultDeps = {
|
|
145
143
|
env: process.env,
|
|
@@ -150,7 +148,11 @@ var defaultDeps = {
|
|
|
150
148
|
exit: (code) => process.exit(code)
|
|
151
149
|
};
|
|
152
150
|
async function runCiEntrypoint(source, main2, deps = defaultDeps) {
|
|
153
|
-
const
|
|
151
|
+
const resolved = healthParams(deps.env);
|
|
152
|
+
const params = "params" in resolved ? resolved.params : null;
|
|
153
|
+
if (!params) {
|
|
154
|
+
deps.logError(`Health not recorded for "${source}": ${resolved.missing.join(", ")} not set.`);
|
|
155
|
+
}
|
|
154
156
|
const octokit = params ? deps.createGithubClient(deps.env.DEVKEEP_GITHUB_TOKEN) : null;
|
|
155
157
|
try {
|
|
156
158
|
await main2();
|
package/dist/draft-log-entry.js
CHANGED
|
@@ -232,17 +232,15 @@ function currentRunUrl(env) {
|
|
|
232
232
|
// ../../modules/core/dist/ciEntrypoint.js
|
|
233
233
|
var VAULT_BRANCH = "main";
|
|
234
234
|
function healthParams(env) {
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (!projectName || !vaultRepo || !token) {
|
|
239
|
-
return null;
|
|
235
|
+
const missing = ["PROJECT_NAME", "VAULT_REPO", "DEVKEEP_GITHUB_TOKEN"].filter((name) => !env[name]);
|
|
236
|
+
if (missing.length > 0) {
|
|
237
|
+
return { missing: [...missing] };
|
|
240
238
|
}
|
|
241
|
-
const [owner, repo] =
|
|
239
|
+
const [owner, repo] = env.VAULT_REPO.split("/");
|
|
242
240
|
if (!owner || !repo) {
|
|
243
|
-
return
|
|
241
|
+
return { missing: ["VAULT_REPO (expected owner/repo)"] };
|
|
244
242
|
}
|
|
245
|
-
return { owner, repo, projectName, branch: VAULT_BRANCH };
|
|
243
|
+
return { params: { owner, repo, projectName: env.PROJECT_NAME, branch: VAULT_BRANCH } };
|
|
246
244
|
}
|
|
247
245
|
var defaultDeps = {
|
|
248
246
|
env: process.env,
|
|
@@ -253,7 +251,11 @@ var defaultDeps = {
|
|
|
253
251
|
exit: (code) => process.exit(code)
|
|
254
252
|
};
|
|
255
253
|
async function runCiEntrypoint(source, main2, deps = defaultDeps) {
|
|
256
|
-
const
|
|
254
|
+
const resolved = healthParams(deps.env);
|
|
255
|
+
const params = "params" in resolved ? resolved.params : null;
|
|
256
|
+
if (!params) {
|
|
257
|
+
deps.logError(`Health not recorded for "${source}": ${resolved.missing.join(", ")} not set.`);
|
|
258
|
+
}
|
|
257
259
|
const octokit = params ? deps.createGithubClient(deps.env.DEVKEEP_GITHUB_TOKEN) : null;
|
|
258
260
|
try {
|
|
259
261
|
await main2();
|
|
@@ -232,17 +232,15 @@ function currentRunUrl(env) {
|
|
|
232
232
|
// ../../modules/core/dist/ciEntrypoint.js
|
|
233
233
|
var VAULT_BRANCH = "main";
|
|
234
234
|
function healthParams(env) {
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (!projectName || !vaultRepo || !token) {
|
|
239
|
-
return null;
|
|
235
|
+
const missing = ["PROJECT_NAME", "VAULT_REPO", "DEVKEEP_GITHUB_TOKEN"].filter((name) => !env[name]);
|
|
236
|
+
if (missing.length > 0) {
|
|
237
|
+
return { missing: [...missing] };
|
|
240
238
|
}
|
|
241
|
-
const [owner, repo] =
|
|
239
|
+
const [owner, repo] = env.VAULT_REPO.split("/");
|
|
242
240
|
if (!owner || !repo) {
|
|
243
|
-
return
|
|
241
|
+
return { missing: ["VAULT_REPO (expected owner/repo)"] };
|
|
244
242
|
}
|
|
245
|
-
return { owner, repo, projectName, branch: VAULT_BRANCH };
|
|
243
|
+
return { params: { owner, repo, projectName: env.PROJECT_NAME, branch: VAULT_BRANCH } };
|
|
246
244
|
}
|
|
247
245
|
var defaultDeps = {
|
|
248
246
|
env: process.env,
|
|
@@ -253,7 +251,11 @@ var defaultDeps = {
|
|
|
253
251
|
exit: (code) => process.exit(code)
|
|
254
252
|
};
|
|
255
253
|
async function runCiEntrypoint(source, main2, deps = defaultDeps) {
|
|
256
|
-
const
|
|
254
|
+
const resolved = healthParams(deps.env);
|
|
255
|
+
const params = "params" in resolved ? resolved.params : null;
|
|
256
|
+
if (!params) {
|
|
257
|
+
deps.logError(`Health not recorded for "${source}": ${resolved.missing.join(", ")} not set.`);
|
|
258
|
+
}
|
|
257
259
|
const octokit = params ? deps.createGithubClient(deps.env.DEVKEEP_GITHUB_TOKEN) : null;
|
|
258
260
|
try {
|
|
259
261
|
await main2();
|
package/dist/sync-onboarding.js
CHANGED
|
@@ -232,17 +232,15 @@ function currentRunUrl(env) {
|
|
|
232
232
|
// ../../modules/core/dist/ciEntrypoint.js
|
|
233
233
|
var VAULT_BRANCH = "main";
|
|
234
234
|
function healthParams(env) {
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (!projectName || !vaultRepo || !token) {
|
|
239
|
-
return null;
|
|
235
|
+
const missing = ["PROJECT_NAME", "VAULT_REPO", "DEVKEEP_GITHUB_TOKEN"].filter((name) => !env[name]);
|
|
236
|
+
if (missing.length > 0) {
|
|
237
|
+
return { missing: [...missing] };
|
|
240
238
|
}
|
|
241
|
-
const [owner, repo] =
|
|
239
|
+
const [owner, repo] = env.VAULT_REPO.split("/");
|
|
242
240
|
if (!owner || !repo) {
|
|
243
|
-
return
|
|
241
|
+
return { missing: ["VAULT_REPO (expected owner/repo)"] };
|
|
244
242
|
}
|
|
245
|
-
return { owner, repo, projectName, branch: VAULT_BRANCH };
|
|
243
|
+
return { params: { owner, repo, projectName: env.PROJECT_NAME, branch: VAULT_BRANCH } };
|
|
246
244
|
}
|
|
247
245
|
var defaultDeps = {
|
|
248
246
|
env: process.env,
|
|
@@ -253,7 +251,11 @@ var defaultDeps = {
|
|
|
253
251
|
exit: (code) => process.exit(code)
|
|
254
252
|
};
|
|
255
253
|
async function runCiEntrypoint(source, main2, deps = defaultDeps) {
|
|
256
|
-
const
|
|
254
|
+
const resolved = healthParams(deps.env);
|
|
255
|
+
const params = "params" in resolved ? resolved.params : null;
|
|
256
|
+
if (!params) {
|
|
257
|
+
deps.logError(`Health not recorded for "${source}": ${resolved.missing.join(", ")} not set.`);
|
|
258
|
+
}
|
|
257
259
|
const octokit = params ? deps.createGithubClient(deps.env.DEVKEEP_GITHUB_TOKEN) : null;
|
|
258
260
|
try {
|
|
259
261
|
await main2();
|