@@ -240,7 +240,7 @@ function isJobExcludedByDeprecatedCommandName(job: Job, exclusions: JobToExclude
240
240
) ;
241
241
}
242
242
243
- function isJobExcludedByConfiguration ( job : Job , exclude : JobToExcludeFromFile , config : Config ) : boolean {
243
+ function isJobExcludedByConfiguration ( job : Job , exclude : JobToExcludeFromFile , config : Config , logger : Logger ) : boolean {
244
244
const jobName = isJobFromTool ( job ) ? job . tool . name : job . name ;
245
245
246
246
if ( jobName !== exclude . name ) {
@@ -251,21 +251,26 @@ function isJobExcludedByConfiguration(job: Job, exclude: JobToExcludeFromFile, c
251
251
const dependenciesToExclude = exclude . dependencies ?? WILDCARD_ALIAS ;
252
252
253
253
if ( ! isAnyPhpVersionType ( phpVersionToExclude ) ) {
254
+ const nonExcludedPhpVersionDebugMessage = `Job with name ${ jobName } is not matching exclusion rule with name ${ exclude . name } due to non-excluded php version.` ;
254
255
if ( isLowestPhpVersionType ( phpVersionToExclude ) && job . job . php !== config . minimumPhpVersion ) {
256
+ logger . debug ( nonExcludedPhpVersionDebugMessage ) ;
255
257
return false ;
256
258
}
257
259
258
260
if ( isLatestPhpVersionType ( phpVersionToExclude ) && job . job . php !== config . latestPhpVersion ) {
261
+ logger . debug ( nonExcludedPhpVersionDebugMessage ) ;
259
262
return false ;
260
263
}
261
264
262
265
if ( phpVersionToExclude !== job . job . php ) {
266
+ logger . debug ( nonExcludedPhpVersionDebugMessage ) ;
263
267
return false ;
264
268
}
265
269
}
266
270
267
271
if ( ! isAnyComposerDependencySet ( dependenciesToExclude ) ) {
268
272
if ( dependenciesToExclude !== job . job . composerDependencySet ) {
273
+ logger . debug ( `Job with name ${ jobName } is not matching exclusion rule with name ${ exclude . name } due to non-excluded Composer dependencies.` ) ;
269
274
return false ;
270
275
}
271
276
}
@@ -278,7 +283,7 @@ function isJobExcluded(job: Job, exclusions: JobToExcludeFromFile[], config: Con
278
283
return false ;
279
284
}
280
285
281
- if ( exclusions . some ( ( exclude ) => isJobExcludedByConfiguration ( job , exclude , config ) ) ) {
286
+ if ( exclusions . some ( ( exclude ) => isJobExcludedByConfiguration ( job , exclude , config , logger ) ) ) {
282
287
logger . info ( `Job with name ${ job . name } is excluded due to application config.` ) ;
283
288
284
289
return true ;
0 commit comments