gitlab_hook.go
func (g GitlabHook) DoesHandle(h http.Header) bool {
	event := h.Get("X-Gitlab-Event")

	// for Gitlab you can only use X-Gitlab-Event header to test if you could handle the request
	if event != "" {
		return true
	}
	return false
}
func (g GitlabHook) DoesHandle(h http.Header) bool {
	event := h.Get("X-Gitlab-Event")

	// for Gitlab you can only use X-Gitlab-Event header to test if you could handle the request
	if event != "" {
		return true
	}
	return false
}
func ( g GitlabHook ) DoesHandle ( h http . Header ) bool { event := h . Get ( " " ) // for Gitlab you can only use X-Gitlab-Event header to test if you could handle the request if event != " " { return true } return false }
// DoesHandle satisfies hookHandler.
DoesHandle satisfies hookHandler .