@@ -1270,6 +1270,8 @@ type HookCustomHeader struct {
1270
1270
type ProjectHook struct {
1271
1271
ID int `json:"id"`
1272
1272
URL string `json:"url"`
1273
+ Name string `json:"name,omitempty"`
1274
+ Description string `json:"description,omitempty"`
1273
1275
ConfidentialNoteEvents bool `json:"confidential_note_events"`
1274
1276
ProjectID int `json:"project_id"`
1275
1277
PushEvents bool `json:"push_events"`
@@ -1352,6 +1354,8 @@ func (s *ProjectsService) GetProjectHook(pid interface{}, hook int, options ...R
1352
1354
// GitLab API docs:
1353
1355
// https://docs.gitlab.com/ee/api/projects.html#add-project-hook
1354
1356
type AddProjectHookOptions struct {
1357
+ Name * string `url:"name,omitempty" json:"name,omitempty"`
1358
+ Description * string `url:"description,omitempty" json:"description,omitempty"`
1355
1359
ConfidentialIssuesEvents * bool `url:"confidential_issues_events,omitempty" json:"confidential_issues_events,omitempty"`
1356
1360
ConfidentialNoteEvents * bool `url:"confidential_note_events,omitempty" json:"confidential_note_events,omitempty"`
1357
1361
DeploymentEvents * bool `url:"deployment_events,omitempty" json:"deployment_events,omitempty"`
@@ -1403,6 +1407,8 @@ func (s *ProjectsService) AddProjectHook(pid interface{}, opt *AddProjectHookOpt
1403
1407
// GitLab API docs:
1404
1408
// https://docs.gitlab.com/ee/api/projects.html#edit-project-hook
1405
1409
type EditProjectHookOptions struct {
1410
+ Name * string `url:"name,omitempty" json:"name,omitempty"`
1411
+ Description * string `url:"description,omitempty" json:"description,omitempty"`
1406
1412
ConfidentialIssuesEvents * bool `url:"confidential_issues_events,omitempty" json:"confidential_issues_events,omitempty"`
1407
1413
ConfidentialNoteEvents * bool `url:"confidential_note_events,omitempty" json:"confidential_note_events,omitempty"`
1408
1414
DeploymentEvents * bool `url:"deployment_events,omitempty" json:"deployment_events,omitempty"`
0 commit comments