mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
add note for hook function
This commit is contained in:
parent
7baf721561
commit
b516cb5782
1 changed files with 2 additions and 0 deletions
|
@ -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
|
// ParseHook parses the post-commit hook from the Request body
|
||||||
// and returns the required data in a standard format.
|
// 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) {
|
func (r *Gitlab) Hook(req *http.Request) (*common.Hook, error) {
|
||||||
|
|
||||||
var payload, _ = ioutil.ReadAll(req.Body)
|
var payload, _ = ioutil.ReadAll(req.Body)
|
||||||
|
|
Loading…
Reference in a new issue