(project string, opts *gitlab.ListProjectHooksOptions)
| 65 | } |
| 66 | |
| 67 | func 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 | } |
no test coverage detected