mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-25 20:38:53 +00:00
add note for hook function
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user