@@ -1270,6 +1270,8 @@ type HookCustomHeader struct {
12701270type ProjectHook struct {
12711271 ID int `json:"id"`
12721272 URL string `json:"url"`
1273+ Name string `json:"name,omitempty"`
1274+ Description string `json:"description,omitempty"`
12731275 ConfidentialNoteEvents bool `json:"confidential_note_events"`
12741276 ProjectID int `json:"project_id"`
12751277 PushEvents bool `json:"push_events"`
@@ -1352,6 +1354,8 @@ func (s *ProjectsService) GetProjectHook(pid interface{}, hook int, options ...R
13521354// GitLab API docs:
13531355// https://docs.gitlab.com/ee/api/projects.html#add-project-hook
13541356type AddProjectHookOptions struct {
1357+ Name * string `url:"name,omitempty" json:"name,omitempty"`
1358+ Description * string `url:"description,omitempty" json:"description,omitempty"`
13551359 ConfidentialIssuesEvents * bool `url:"confidential_issues_events,omitempty" json:"confidential_issues_events,omitempty"`
13561360 ConfidentialNoteEvents * bool `url:"confidential_note_events,omitempty" json:"confidential_note_events,omitempty"`
13571361 DeploymentEvents * bool `url:"deployment_events,omitempty" json:"deployment_events,omitempty"`
@@ -1403,6 +1407,8 @@ func (s *ProjectsService) AddProjectHook(pid interface{}, opt *AddProjectHookOpt
14031407// GitLab API docs:
14041408// https://docs.gitlab.com/ee/api/projects.html#edit-project-hook
14051409type EditProjectHookOptions struct {
1410+ Name * string `url:"name,omitempty" json:"name,omitempty"`
1411+ Description * string `url:"description,omitempty" json:"description,omitempty"`
14061412 ConfidentialIssuesEvents * bool `url:"confidential_issues_events,omitempty" json:"confidential_issues_events,omitempty"`
14071413 ConfidentialNoteEvents * bool `url:"confidential_note_events,omitempty" json:"confidential_note_events,omitempty"`
14081414 DeploymentEvents * bool `url:"deployment_events,omitempty" json:"deployment_events,omitempty"`
0 commit comments