From 5ead60e0820c4126a6a6836331c4fa86d5604837 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 19 Apr 2020 01:04:17 +0800 Subject: [PATCH] add git.webhook --- misc/git/git.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/git/git.go b/misc/git/git.go index 6b631fab..ca050900 100644 --- a/misc/git/git.go +++ b/misc/git/git.go @@ -2,6 +2,7 @@ package git import ( ice "github.com/shylinux/icebergs" + "github.com/shylinux/icebergs/base/web" "github.com/shylinux/icebergs/core/code" kit "github.com/shylinux/toolkits" @@ -273,7 +274,10 @@ var Index = &ice.Context{Name: "git", Help: "代码库", } m.Cmdy("total", arg) }}, + + "/webhook": {Name: "/webhook", Help: "/webhook", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + }}, }, } -func init() { code.Index.Register(Index, nil) } +func init() { code.Index.Register(Index, &web.Frame{}) }