@oss-autopilot/core 1.15.0 → 1.15.2

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.
@@ -248,10 +248,11 @@ export const commands = [
248
248
  outputJson(data);
249
249
  }
250
250
  else {
251
- const { issue, recommendation, reasonsToApprove, reasonsToSkip } = data;
251
+ const { issue, recommendation, reasonsToApprove, reasonsToSkip, grade } = data;
252
252
  console.log(`\nVetting issue: ${issueUrl}\n`);
253
253
  console.log(`[${recommendation.toUpperCase()}] ${issue.repo}#${issue.number}: ${issue.title}`);
254
254
  console.log(` URL: ${issue.url}`);
255
+ console.log(` Success grade: ${grade.letter} (${grade.reason})`);
255
256
  if (reasonsToApprove.length > 0)
256
257
  console.log(` Approve: ${reasonsToApprove.join(', ')}`);
257
258
  if (reasonsToSkip.length > 0)
@@ -316,6 +317,38 @@ export const commands = [
316
317
  });
317
318
  },
318
319
  },
320
+ // ── Skip Add ───────────────────────────────────────────────────────────
321
+ {
322
+ name: 'skip-add',
323
+ localOnly: true,
324
+ register(program) {
325
+ program
326
+ .command('skip-add <issue-url>')
327
+ .description('Append an issue URL to the skipped-issues file (idempotent)')
328
+ .option('--path <file>', 'Skipped-issues file path (falls back to config.skippedIssuesPath)')
329
+ .option('--json', 'Output as JSON')
330
+ .action(async (issueUrl, options) => {
331
+ try {
332
+ const { runSkipAdd } = await import('./commands/skip-add.js');
333
+ const data = runSkipAdd({ issueUrl, skipFilePath: options.path });
334
+ if (options.json) {
335
+ outputJson(data);
336
+ }
337
+ else if (data.added) {
338
+ console.log(`Added to skip list: ${data.url} (${data.date})`);
339
+ console.log(` File: ${data.path}`);
340
+ }
341
+ else {
342
+ console.log(`Already on skip list: ${data.url}`);
343
+ console.log(` File: ${data.path}`);
344
+ }
345
+ }
346
+ catch (err) {
347
+ handleCommandError(err, options.json);
348
+ }
349
+ });
350
+ },
351
+ },
319
352
  // ── Track ──────────────────────────────────────────────────────────────
320
353
  {
321
354
  name: 'track',