Skip to content

Commit f57c33b

Browse files
kenancakirJohnVillalovos
authored andcommitted
feat(hooks): add all available project hook attributes
fix missing comma fix wiki page events and sort list
1 parent f899b5e commit f57c33b

1 file changed

Lines changed: 40 additions & 14 deletions

File tree

gitlab/v4/objects/hooks.py

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,61 @@ class ProjectHookManager(CRUDMixin[ProjectHook]):
4949
_create_attrs = RequiredOptional(
5050
required=("url",),
5151
optional=(
52-
"push_events",
53-
"issues_events",
52+
"branch_filter_strategy",
5453
"confidential_issues_events",
54+
"confidential_note_events",
55+
"custom_headers",
56+
"custom_webhook_template",
57+
"deployment_events",
58+
"description",
59+
"enable_ssl_verification",
60+
"feature_flag_events",
61+
"issues_events",
62+
"job_events",
5563
"merge_requests_events",
56-
"tag_push_events",
64+
"milestone_events",
65+
"name",
5766
"note_events",
58-
"job_events",
5967
"pipeline_events",
60-
"wiki_page_events",
61-
"enable_ssl_verification",
68+
"push_events",
69+
"push_events_branch_filter",
70+
"releases_events",
71+
"resource_access_token_events",
72+
"resource_deploy_token_events",
73+
"signing_token",
74+
"tag_push_events",
6275
"token",
63-
"custom_webhook_template",
76+
"wiki_page_events",
6477
),
6578
)
6679
_update_attrs = RequiredOptional(
6780
required=("url",),
6881
optional=(
69-
"push_events",
70-
"issues_events",
82+
"branch_filter_strategy",
7183
"confidential_issues_events",
84+
"confidential_note_events",
85+
"custom_headers",
86+
"custom_webhook_template",
87+
"deployment_events",
88+
"description",
89+
"enable_ssl_verification",
90+
"feature_flag_events",
91+
"issues_events",
92+
"job_events",
7293
"merge_requests_events",
73-
"tag_push_events",
94+
"milestone_events",
95+
"name",
7496
"note_events",
75-
"job_events",
7697
"pipeline_events",
77-
"wiki_events",
78-
"enable_ssl_verification",
98+
"push_events",
99+
"push_events_branch_filter",
100+
"releases_events",
101+
"resource_access_token_events",
102+
"resource_deploy_token_events",
103+
"signing_token",
104+
"tag_push_events",
79105
"token",
80-
"custom_webhook_template",
106+
"wiki_page_events",
81107
),
82108
)
83109

0 commit comments

Comments
 (0)