Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
7ed9e581
Commit
7ed9e581
authored
Sep 18, 2021
by
Michaël van de Giessen
Browse files
indentation consistent, less diff
parent
ae1915ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
7ed9e581
...
@@ -2145,22 +2145,22 @@ public class ProjectApi extends AbstractApi implements Constants {
...
@@ -2145,22 +2145,22 @@ public class ProjectApi extends AbstractApi implements Constants {
public
ProjectHook
modifyHook
(
ProjectHook
hook
)
throws
GitLabApiException
{
public
ProjectHook
modifyHook
(
ProjectHook
hook
)
throws
GitLabApiException
{
GitLabApiForm
formData
=
new
GitLabApiForm
()
GitLabApiForm
formData
=
new
GitLabApiForm
()
.
withParam
(
"url"
,
hook
.
getUrl
(),
true
)
.
withParam
(
"url"
,
hook
.
getUrl
(),
true
)
.
withParam
(
"push_events"
,
hook
.
getPushEvents
(),
false
)
.
withParam
(
"push_events"
,
hook
.
getPushEvents
(),
false
)
.
withParam
(
"push_events_branch_filter"
,
hook
.
getPushEventsBranchFilter
(),
false
)
.
withParam
(
"push_events_branch_filter"
,
hook
.
getPushEventsBranchFilter
(),
false
)
.
withParam
(
"issues_events"
,
hook
.
getIssuesEvents
(),
false
)
.
withParam
(
"issues_events"
,
hook
.
getIssuesEvents
(),
false
)
.
withParam
(
"confidential_issues_events"
,
hook
.
getConfidentialIssuesEvents
(),
false
)
.
withParam
(
"confidential_issues_events"
,
hook
.
getConfidentialIssuesEvents
(),
false
)
.
withParam
(
"merge_requests_events"
,
hook
.
getMergeRequestsEvents
(),
false
)
.
withParam
(
"merge_requests_events"
,
hook
.
getMergeRequestsEvents
(),
false
)
.
withParam
(
"tag_push_events"
,
hook
.
getTagPushEvents
(),
false
)
.
withParam
(
"tag_push_events"
,
hook
.
getTagPushEvents
(),
false
)
.
withParam
(
"note_events"
,
hook
.
getNoteEvents
(),
false
)
.
withParam
(
"note_events"
,
hook
.
getNoteEvents
(),
false
)
.
withParam
(
"confidential_note_events"
,
hook
.
getConfidentialNoteEvents
(),
false
)
.
withParam
(
"confidential_note_events"
,
hook
.
getConfidentialNoteEvents
(),
false
)
.
withParam
(
"job_events"
,
hook
.
getJobEvents
(),
false
)
.
withParam
(
"job_events"
,
hook
.
getJobEvents
(),
false
)
.
withParam
(
"pipeline_events"
,
hook
.
getPipelineEvents
(),
false
)
.
withParam
(
"pipeline_events"
,
hook
.
getPipelineEvents
(),
false
)
.
withParam
(
"wiki_page_events"
,
hook
.
getWikiPageEvents
(),
false
)
.
withParam
(
"wiki_page_events"
,
hook
.
getWikiPageEvents
(),
false
)
.
withParam
(
"enable_ssl_verification"
,
hook
.
getEnableSslVerification
(),
false
)
.
withParam
(
"enable_ssl_verification"
,
hook
.
getEnableSslVerification
(),
false
)
.
withParam
(
"repository_update_events"
,
hook
.
getRepositoryUpdateEvents
(),
false
)
.
withParam
(
"repository_update_events"
,
hook
.
getRepositoryUpdateEvents
(),
false
)
.
withParam
(
"releases_events"
,
hook
.
getReleasesEvents
(),
false
)
.
withParam
(
"releases_events"
,
hook
.
getReleasesEvents
(),
false
)
.
withParam
(
"deployment_events"
,
hook
.
getDeploymentEvents
(),
false
)
.
withParam
(
"deployment_events"
,
hook
.
getDeploymentEvents
(),
false
)
.
withParam
(
"token"
,
hook
.
getToken
(),
false
);
.
withParam
(
"token"
,
hook
.
getToken
(),
false
);
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
hook
.
getProjectId
(),
"hooks"
,
hook
.
getId
());
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
hook
.
getProjectId
(),
"hooks"
,
hook
.
getId
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment