(comments: Comment[])
| 691 | } |
| 692 | |
| 693 | function logActCommentPreview(comments: Comment[]): void { |
| 694 | if (process.env.ACT !== 'true' || comments.length === 0) { |
| 695 | return; |
| 696 | } |
| 697 | |
| 698 | core.info('🧪 Running in act - showing comment preview:'); |
| 699 | comments.forEach((comment: Comment, index: number) => { |
| 700 | core.info(` ${index + 1}. ${comment.file}:${comment.line}`); |
| 701 | const preview = comment.fix |
| 702 | ? `${comment.finding.substring(0, 80)}... [+ suggested fix]` |
| 703 | : comment.finding.substring(0, 100); |
| 704 | core.info(` ${preview}${comment.finding.length > 100 ? '...' : ''}`); |
| 705 | }); |
| 706 | } |
| 707 | |
| 708 | function cleanupConfig(configPath: string, finalConfigPath: string): void { |
| 709 | if (!configPath) { |
no outgoing calls
no test coverage detected
searching dependent graphs…