[PATCH compass-ci] src/lib/web_backend.rb: filter git_repos
 
            
            
            
            
                27 Apr
                
                    2021
                
            
            
                27 Apr
                
                '21
                
            
            
            
        
    
                11:52 a.m.
            
        To make sure git_repos displayed on the web are right. Signed-off-by: Li Yuanchao <lyc163mail@163.com> --- src/lib/web_backend.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/web_backend.rb b/src/lib/web_backend.rb index 91287b4..452e94a 100644 --- a/src/lib/web_backend.rb +++ b/src/lib/web_backend.rb @@ -403,6 +403,8 @@ def query_repos(must, from: 0, size: 1) repos = [] result['hits']['hits'].each do |r| r = r['_source'] + next unless r['git_repo'] =~ /^([a-z]\/)/ + repos << { git_url: get_repo_url(r['url']), git_repo: r['git_repo'] -- 2.23.0
        1649
        
      
          Age (days ago)
        
      
        1649
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 Li Yuanchao Li Yuanchao