@probelabs/visor 0.1.35 → 0.1.36
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/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/index.ts"],"names":[],"mappings":"AAwGA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/index.ts"],"names":[],"mappings":"AAwGA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CA0HzC"}
|
package/dist/index.js
CHANGED
|
@@ -86337,12 +86337,14 @@ async function run() {
|
|
|
86337
86337
|
console.log('📋 Loaded Visor config from project');
|
|
86338
86338
|
}
|
|
86339
86339
|
}
|
|
86340
|
-
catch {
|
|
86340
|
+
catch (configError) {
|
|
86341
|
+
// Log the error for debugging
|
|
86342
|
+
console.warn('⚠️ Error loading config:', configError instanceof Error ? configError.message : String(configError));
|
|
86341
86343
|
// Fall back to bundled default config
|
|
86342
86344
|
const bundledConfig = configManager.loadBundledDefaultConfig();
|
|
86343
86345
|
if (bundledConfig) {
|
|
86344
86346
|
config = bundledConfig;
|
|
86345
|
-
console.log('📋 Using bundled default configuration');
|
|
86347
|
+
console.log('📋 Using bundled default configuration (fallback due to error)');
|
|
86346
86348
|
}
|
|
86347
86349
|
else {
|
|
86348
86350
|
// Ultimate fallback if even defaults/.visor.yaml can't be loaded
|
|
@@ -86397,6 +86399,13 @@ async function handleEvent(octokit, inputs, eventName, context, config) {
|
|
|
86397
86399
|
throw new Error('Owner and repo are required');
|
|
86398
86400
|
}
|
|
86399
86401
|
console.log(`Event: ${eventName}, Owner: ${owner}, Repo: ${repo}`);
|
|
86402
|
+
// Debug: Log the checks that are available in the loaded config
|
|
86403
|
+
const allChecks = Object.keys(config.checks || {});
|
|
86404
|
+
console.log(`📚 Total checks in loaded config: ${allChecks.length}`);
|
|
86405
|
+
if (allChecks.length <= 10) {
|
|
86406
|
+
// Only log check names if there aren't too many
|
|
86407
|
+
console.log(`📚 Available checks: ${allChecks.join(', ')}`);
|
|
86408
|
+
}
|
|
86400
86409
|
// Map GitHub event to our event trigger format
|
|
86401
86410
|
const eventType = mapGitHubEventToTrigger(eventName, context.event?.action);
|
|
86402
86411
|
// Find checks that should run for this event
|