mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add dingtalk webhook (#2777)
* add dingtalk webhook type * add vendor * some fixes * fix name check * fix name check & improvment
This commit is contained in:
		| @@ -222,6 +222,17 @@ func (f *NewDiscordHookForm) Validate(ctx *macaron.Context, errs binding.Errors) | ||||
| 	return validate(errs, ctx.Data, f, ctx.Locale) | ||||
| } | ||||
|  | ||||
| // NewDingtalkHookForm form for creating dingtalk hook | ||||
| type NewDingtalkHookForm struct { | ||||
| 	PayloadURL string `binding:"Required;ValidUrl"` | ||||
| 	WebhookForm | ||||
| } | ||||
|  | ||||
| // Validate validates the fields | ||||
| func (f *NewDingtalkHookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { | ||||
| 	return validate(errs, ctx.Data, f, ctx.Locale) | ||||
| } | ||||
|  | ||||
| // .___ | ||||
| // |   | ______ ________ __   ____ | ||||
| // |   |/  ___//  ___/  |  \_/ __ \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user