mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Implement webhook branch filter (#7791)
* Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998.
This commit is contained in:
		@@ -26,8 +26,9 @@ type (
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	TestForm struct {
 | 
			
		||||
		BranchName string `form:"BranchName" binding:"GitRefName"`
 | 
			
		||||
		URL        string `form:"ValidUrl" binding:"ValidUrl"`
 | 
			
		||||
		BranchName  string `form:"BranchName" binding:"GitRefName"`
 | 
			
		||||
		URL         string `form:"ValidUrl" binding:"ValidUrl"`
 | 
			
		||||
		GlobPattern string `form:"GlobPattern" binding:"GlobPattern"`
 | 
			
		||||
	}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user