Skip to content

Commit 05f0278

Browse files
committed
path issue
1 parent eb994d8 commit 05f0278

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/git/gitlab/gitlab.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ func (c Client) CreateWebHook(ctx context.Context, repoOwner, repoName, payloadU
2121
if err != nil {
2222
return fmt.Errorf("cannot create GitLab client: %w", err)
2323
}
24-
24+
2525
projectPath := repoOwner + "/" + repoName
2626

27-
existingHooks, _, err := glabCli.Projects.ListProjectHooks(projectPath)
27+
existingHooks, _, err := glabCli.Projects.ListProjectHooks(projectPath, nil)
2828
if err != nil {
2929
return fmt.Errorf("cannot list existing hooks: %w", err)
3030
}

0 commit comments

Comments
 (0)