MCPcopy Create free account
hub / github.com/devopsctl/gitlabctl / getProjectHooks

Function getProjectHooks

cmd/get_project_hooks.go:67–77  ·  view source on GitHub ↗
(project string, opts *gitlab.ListProjectHooksOptions)

Source from the content-addressed store, hash-verified

65}
66
67func getProjectHooks(project string, opts *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, error) {
68 git, err := newGitlabClient()
69 if err != nil {
70 return nil, err
71 }
72 hooks, _, err := git.Projects.ListProjectHooks(project, opts)
73 if err != nil {
74 return nil, err
75 }
76 return hooks, nil
77}

Callers 1

runGetProjectHooksFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by

no test coverage detected