mirror of
				https://github.com/awesome-selfhosted/awesome-selfhosted.git
				synced 2025-11-04 06:39:39 +01:00 
			
		
		
		
	Fix dangerfile
This commit is contained in:
		
							parent
							
								
									c99de42097
								
							
						
					
					
						commit
						4c67cc50ed
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								Dangerfile
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								Dangerfile
									
										
									
									
									
								
							| 
						 | 
					@ -27,10 +27,10 @@ end
 | 
				
			||||||
# Check syntax
 | 
					# Check syntax
 | 
				
			||||||
if has_readme_changes
 | 
					if has_readme_changes
 | 
				
			||||||
 require 'json'
 | 
					 require 'json'
 | 
				
			||||||
 results = File.read 'syntaxcheck.json'
 | 
					 syntaxresults = File.read 'syntaxcheck.json'
 | 
				
			||||||
 j = JSON.parse results
 | 
					 sj = JSON.parse syntaxresults
 | 
				
			||||||
 if j['error']==true
 | 
					 if sj['error']==true
 | 
				
			||||||
  fail j['title']
 | 
					  fail sj['title']
 | 
				
			||||||
  markdown j['message']
 | 
					  markdown sj['message']
 | 
				
			||||||
 end
 | 
					 end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue