From b516cb57827112d9c1415f963e52d8ff48777bbe Mon Sep 17 00:00:00 2001 From: letusfly85 Date: Sun, 26 Jul 2015 07:52:57 +0900 Subject: [PATCH] add note for hook function --- pkg/remote/gitlab/gitlab.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/remote/gitlab/gitlab.go b/pkg/remote/gitlab/gitlab.go index eb566e245..087f31931 100644 --- a/pkg/remote/gitlab/gitlab.go +++ b/pkg/remote/gitlab/gitlab.go @@ -213,6 +213,8 @@ func (r *Gitlab) Deactivate(user *common.User, repo *common.Repo, link string) e // ParseHook parses the post-commit hook from the Request body // and returns the required data in a standard format. +// NOTE: in gitlab 8.0, gitlab will get same MR models as github +// https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/981/diffs func (r *Gitlab) Hook(req *http.Request) (*common.Hook, error) { var payload, _ = ioutil.ReadAll(req.Body)