From 22713e3054b584088f55f7e4cfd923aec0223c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=B6=E7=88=B8?= <1@5.nu> Date: Mon, 7 May 2018 18:41:12 +0800 Subject: [PATCH] add gogs support --- bitbucket/bitbucket.go | 2 +- github/github.go | 2 +- gitlab/gitlab.go | 2 +- gogs/gogs.go | 7 +------ 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go index 46e9422..4fa5929 100644 --- a/bitbucket/bitbucket.go +++ b/bitbucket/bitbucket.go @@ -6,7 +6,7 @@ import ( "io/ioutil" "net/http" - "github.com/naiba/webhooks" + "gopkg.in/go-playground/webhooks.v3" ) // Webhook instance contains all methods needed to process events diff --git a/github/github.go b/github/github.go index 26a52da..2b5c933 100644 --- a/github/github.go +++ b/github/github.go @@ -9,7 +9,7 @@ import ( "io/ioutil" "net/http" - "github.com/naiba/webhooks" + "gopkg.in/go-playground/webhooks.v3" ) // Webhook instance contains all methods needed to process events diff --git a/gitlab/gitlab.go b/gitlab/gitlab.go index 5126e1d..cac3a3e 100644 --- a/gitlab/gitlab.go +++ b/gitlab/gitlab.go @@ -6,7 +6,7 @@ import ( "io/ioutil" "net/http" - "github.com/naiba/webhooks" + "gopkg.in/go-playground/webhooks.v3" ) // Webhook instance contains all methods needed to process events diff --git a/gogs/gogs.go b/gogs/gogs.go index d478dee..1cf3798 100644 --- a/gogs/gogs.go +++ b/gogs/gogs.go @@ -1,8 +1,3 @@ -/* - * Copyright (c) 2018, 奶爸<1@5.nu> - * All rights reserved. - */ - package gogs import ( @@ -11,7 +6,7 @@ import ( "io/ioutil" "net/http" - "github.com/naiba/webhooks" + "gopkg.in/go-playground/webhooks.v3" client "github.com/gogits/go-gogs-client" "crypto/hmac" "crypto/sha256"