mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add more webhooks support and refactor webhook templates directory (#3929)
* add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * load attributes when created release * update comparsion doc
This commit is contained in:
		@@ -155,12 +155,17 @@ func (f *ProtectBranchForm) Validate(ctx *macaron.Context, errs binding.Errors)
 | 
			
		||||
 | 
			
		||||
// WebhookForm form for changing web hook
 | 
			
		||||
type WebhookForm struct {
 | 
			
		||||
	Events      string
 | 
			
		||||
	Create      bool
 | 
			
		||||
	Push        bool
 | 
			
		||||
	PullRequest bool
 | 
			
		||||
	Repository  bool
 | 
			
		||||
	Active      bool
 | 
			
		||||
	Events       string
 | 
			
		||||
	Create       bool
 | 
			
		||||
	Delete       bool
 | 
			
		||||
	Fork         bool
 | 
			
		||||
	Issues       bool
 | 
			
		||||
	IssueComment bool
 | 
			
		||||
	Release      bool
 | 
			
		||||
	Push         bool
 | 
			
		||||
	PullRequest  bool
 | 
			
		||||
	Repository   bool
 | 
			
		||||
	Active       bool
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// PushOnly if the hook will be triggered when push
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user