@socketsecurity/cli-with-sentry 1.0.46 → 1.0.47
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/cli.js
CHANGED
|
@@ -3405,14 +3405,14 @@ async function cleanupPrs(owner, repo, options) {
|
|
|
3405
3405
|
pull_number: prNum,
|
|
3406
3406
|
state: 'closed'
|
|
3407
3407
|
});
|
|
3408
|
-
debug.debugFn('notice', `
|
|
3408
|
+
debug.debugFn('notice', `pr: closing ${prRef} for ${prToVersion}`);
|
|
3409
3409
|
// Remove entry from parent object.
|
|
3410
3410
|
context.parent.splice(context.index, 1);
|
|
3411
3411
|
// Mark cache to be saved.
|
|
3412
3412
|
cachesToSave.set(context.cacheKey, context.data);
|
|
3413
3413
|
return null;
|
|
3414
3414
|
} catch (e) {
|
|
3415
|
-
debug.debugFn('error', `
|
|
3415
|
+
debug.debugFn('error', `pr: failed to close ${prRef} for ${prToVersion}\n`, e?.message || 'unknown error');
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
// Update stale PRs.
|
|
@@ -3425,7 +3425,7 @@ async function cleanupPrs(owner, repo, options) {
|
|
|
3425
3425
|
base: match.headRefName,
|
|
3426
3426
|
head: match.baseRefName
|
|
3427
3427
|
});
|
|
3428
|
-
debug.debugFn('notice',
|
|
3428
|
+
debug.debugFn('notice', `pr: updating stale ${prRef}`);
|
|
3429
3429
|
// Update entry entry.
|
|
3430
3430
|
if (context.apiType === 'graphql') {
|
|
3431
3431
|
context.entry.mergeStateStatus = 'CLEAN';
|
|
@@ -3436,7 +3436,7 @@ async function cleanupPrs(owner, repo, options) {
|
|
|
3436
3436
|
cachesToSave.set(context.cacheKey, context.data);
|
|
3437
3437
|
} catch (e) {
|
|
3438
3438
|
const message = e?.message || 'Unknown error';
|
|
3439
|
-
debug.debugFn('error', `
|
|
3439
|
+
debug.debugFn('error', `pr: failed to update ${prRef} - ${message}`);
|
|
3440
3440
|
}
|
|
3441
3441
|
}
|
|
3442
3442
|
return match;
|
|
@@ -4106,6 +4106,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
|
|
|
4106
4106
|
|
|
4107
4107
|
// Check repoInfo to make TypeScript happy.
|
|
4108
4108
|
if (!errored && fixEnv.isCi && fixEnv.repoInfo) {
|
|
4109
|
+
debug.debugFn('notice', 'pr: creating');
|
|
4109
4110
|
try {
|
|
4110
4111
|
if (
|
|
4111
4112
|
// eslint-disable-next-line no-await-in-loop
|
|
@@ -4177,6 +4178,8 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
|
|
|
4177
4178
|
error = e;
|
|
4178
4179
|
errored = true;
|
|
4179
4180
|
}
|
|
4181
|
+
} else if (fixEnv.isCi) {
|
|
4182
|
+
debug.debugFn('notice', 'skip: PR creation');
|
|
4180
4183
|
}
|
|
4181
4184
|
if (fixEnv.isCi) {
|
|
4182
4185
|
spinner?.start();
|
|
@@ -14311,5 +14314,5 @@ void (async () => {
|
|
|
14311
14314
|
await utils.captureException(e);
|
|
14312
14315
|
}
|
|
14313
14316
|
})();
|
|
14314
|
-
//# debugId=
|
|
14317
|
+
//# debugId=2722f924-d472-409c-b963-52b32c1b6daa
|
|
14315
14318
|
//# sourceMappingURL=cli.js.map
|