lint: Set repository variable in tools/lint-commits.
refer to: zulip/zulip#17506
This commit is contained in:
		
							parent
							
								
									4083849b5d
								
							
						
					
					
						commit
						470967cfdb
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -9,10 +9,12 @@
 | 
			
		|||
 | 
			
		||||
# The rules can be found in /.gitlint
 | 
			
		||||
 | 
			
		||||
repository="zulip/python-zulip-api"
 | 
			
		||||
 | 
			
		||||
if [[ "
 | 
			
		||||
$(git remote -v)
 | 
			
		||||
" =~ '
 | 
			
		||||
'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/python-zulip-api(\.git|/)?\ \(fetch\)'
 | 
			
		||||
'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)"$repository"(\.git|/)?\ \(fetch\)'
 | 
			
		||||
' ]]; then
 | 
			
		||||
    range="${BASH_REMATCH[1]}/master..HEAD"
 | 
			
		||||
else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue