mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Merge pull request #442 from compressed/org_hook
Organization-level Webhooks
This commit is contained in:
		@@ -261,6 +261,13 @@ func runWeb(*cli.Context) {
 | 
			
		||||
			m.Group("/settings", func(r *macaron.Router) {
 | 
			
		||||
				r.Get("", org.Settings)
 | 
			
		||||
				r.Post("", bindIgnErr(auth.UpdateOrgSettingForm{}), org.SettingsPost)
 | 
			
		||||
				r.Get("/hooks", org.SettingsHooks)
 | 
			
		||||
				r.Get("/hooks/new", repo.WebHooksNew)
 | 
			
		||||
				r.Post("/hooks/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost)
 | 
			
		||||
				r.Post("/hooks/slack/new", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksNewPost)
 | 
			
		||||
				r.Get("/hooks/:id", repo.WebHooksEdit)
 | 
			
		||||
				r.Post("/hooks/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost)
 | 
			
		||||
				r.Post("/hooks/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost)
 | 
			
		||||
				r.Route("/delete", "GET,POST", org.SettingsDelete)
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user