mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 19:43:37 +00:00 
			
		
		
		
	Responded to PR feedback.
This commit is contained in:
		
							parent
							
								
									041723abcc
								
							
						
					
					
						commit
						914445f9e7
					
				| @ -51,10 +51,10 @@ export function isGhes(url?: string): boolean { | ||||
| 
 | ||||
|   const hostname = ghUrl.hostname.trimEnd().toUpperCase() | ||||
|   const isGitHubHost = hostname === 'GITHUB.COM' | ||||
|   const isGheHost = hostname.endsWith('.GHE.COM') | ||||
|   const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM') | ||||
|   const isLocalHost = hostname.endsWith('.LOCALHOST') | ||||
| 
 | ||||
|   return !isGitHubHost && !isGheHost && !isLocalHost | ||||
|   return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost | ||||
| } | ||||
| 
 | ||||
| function pruneSuffix(text: string, suffix: string) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user