@@ -103,6 +103,7 @@ export interface DangerInputs {
103103 */
104104export interface DangerResult {
105105 warnings : string [ ] ;
106+ infos : string [ ] ;
106107 summary : ScopeReport ;
107108}
108109
@@ -137,7 +138,7 @@ const scopeFormat = /^[a-z0-9._/-]+$/i;
137138const typeSet = new Set ( allowedTypes ) ;
138139const skipTestLabels = new Set ( [ "no-tests-needed" , "skip-tests" , "tests-not-required" ] ) ;
139140const skipTestMarkers = [ "[skip danger tests]" , "[danger skip tests]" ] ;
140- const nonTestCommitLimit = 800 ;
141+ const nonTestCommitLimit = 2000 ;
141142
142143/**
143144 * Format churn as a + / - pair with explicit signs.
@@ -443,7 +444,7 @@ export function validateCommits(commits: CommitInfo[]): { warnings: string[]; pa
443444 * @param commits commits with per-file stats.
444445 * @returns warning messages for commits that exceed the threshold.
445446 */
446- export function commitSizeWarnings ( commits : CommitInfo [ ] ) : string [ ] {
447+ export function commitSizeInfos ( commits : CommitInfo [ ] ) : string [ ] {
447448 const messages : string [ ] = [ ] ;
448449 for ( const commit of commits ) {
449450 if ( ! commit . files || commit . files . length === 0 ) {
@@ -464,9 +465,9 @@ export function commitSizeWarnings(commits: CommitInfo[]): string[] {
464465
465466 if ( churn > nonTestCommitLimit && parsedType !== "refactor" ) {
466467 const shortSha = commit . sha . substring ( 0 , 7 ) ;
467- // === Commit size warnings (non-test churn) ===
468+ // === Commit size informational notes (non-test churn) ===
468469 messages . push (
469- `Commit \`${ shortSha } \` (${ summary } ) changes ${ churn } source lines. Consider splitting it into smaller, reviewable chunks .` ,
470+ `Commit \`${ shortSha } \` (${ summary } ) touches ${ churn } source lines (non-test). Large change; add reviewer context if needed .` ,
470471 ) ;
471472 }
472473 }
@@ -555,11 +556,12 @@ export function evaluateDanger(input: DangerInputs): DangerResult {
555556 const summary = summarizeScopes ( input . files ) ;
556557 const commitValidation = validateCommits ( input . commits ) ;
557558
559+ const infos = commitSizeInfos ( input . commits ) ;
560+
558561 const warnings = [
559562 ...commitValidation . warnings ,
560- ...commitSizeWarnings ( input . commits ) ,
561563 ...basicChecks ( input , summary , commitValidation . parsed ) ,
562564 ] ;
563565
564- return { warnings, summary } ;
566+ return { warnings, infos , summary } ;
565567}
0 commit comments