@@ -1074,7 +1074,7 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
1074
1074
* Only working with GitLab 16.9 and above.
1075
1075
*
1076
1076
* <pre><code>GitLab Endpoint: GET /projects/:id/avatar</code></pre>
1077
- *
1077
+ *
1078
1078
* @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
1079
1079
* @return an InputStream to read the raw file from
1080
1080
* @throws GitLabApiException if any exception occurs
@@ -2250,13 +2250,14 @@ public ProjectHook addHook(Object projectIdOrPath, String url, ProjectHook enabl
2250
2250
* @throws GitLabApiException if any exception occurs
2251
2251
*/
2252
2252
public ProjectHook addHook (Object projectIdOrPath , String url , boolean doPushEvents ,
2253
- boolean doIssuesEvents , boolean doMergeRequestsEvents ) throws GitLabApiException {
2253
+ boolean doIssuesEvents , boolean doMergeRequestsEvents , boolean doNoteEvents ) throws GitLabApiException {
2254
2254
2255
2255
GitLabApiForm formData = new GitLabApiForm ()
2256
2256
.withParam ("url" , url )
2257
2257
.withParam ("push_events" , doPushEvents )
2258
2258
.withParam ("issues_events" , doIssuesEvents )
2259
- .withParam ("merge_requests_events" , doMergeRequestsEvents );
2259
+ .withParam ("merge_requests_events" , doMergeRequestsEvents )
2260
+ .withParam ("note_events" , doNoteEvents );
2260
2261
2261
2262
Response response = post (Response .Status .CREATED , formData , "projects" , getProjectIdOrPath (projectIdOrPath ), "hooks" );
2262
2263
return (response .readEntity (ProjectHook .class ));
0 commit comments