File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 9999            Write-host "Building from PR" 
100100
101101            # get files changed in PR, if this is a PR 
102-             $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nanoFramework.IoT.Device/pulls/$env:System_PullRequest_PullRequestNumber/files" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET 
102+             # can get max of 100 files using this method (for more requires paging) 
103+             $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nanoFramework.IoT.Device/pulls/$env:System_PullRequest_PullRequestNumber/files?per_page=100" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET 
103104
104105            # filter removed files               
105106            $files = $commit.where{$_.status -ne 'removed'} 
@@ -129,7 +130,7 @@ steps:
129130        Write-host "" 
130131
131132        # pattern to select device folder name 
132-         $pattern = '(devices\/)(?<folder>. +)(\/)' 
133+         $pattern = '(devices\/)(?<folder>[a-zA-z.] +)(?> \/)' 
133134
134135        # filter out the collection 
135136        $results = [Regex]::Matches($files1, $pattern) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments