File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/Cake.AzureDevOps/Repos/PullRequest Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -513,22 +513,26 @@ public IEnumerable<FilePath> GetModifiedFiles()
513
513
. GetAwaiter ( )
514
514
. GetResult ( ) ;
515
515
516
- this . log . Verbose (
517
- "Found {0} changed file(s) in the pull request" ,
518
- commitDiffs . Changes . Count ( ) ) ;
519
-
520
516
if ( ! commitDiffs . ChangeCounts . Any ( ) )
521
517
{
518
+ this . log . Verbose ( "Found 0 changed files in the pull request" ) ;
519
+
522
520
return new List < FilePath > ( ) ;
523
521
}
524
522
525
- return
523
+ var changes =
526
524
from change in commitDiffs . Changes
527
525
where
528
526
change != null &&
529
527
! change . Item . IsFolder
530
528
select
531
529
new FilePath ( change . Item . Path . TrimStart ( '/' ) ) ;
530
+
531
+ this . log . Verbose (
532
+ "Found {0} changed file(s) in the pull request" ,
533
+ changes . Count ( ) ) ;
534
+
535
+ return changes ;
532
536
}
533
537
}
534
538
You can’t perform that action at this time.
0 commit comments