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
1d48b5c0
Commit
1d48b5c0
authored
Aug 25, 2021
by
ryan.neal
Browse files
fix: added functionality to ProjectApi
parent
a2032033
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
1d48b5c0
...
...
@@ -2073,6 +2073,7 @@ public class ProjectApi extends AbstractApi implements Constants {
.
withParam
(
"wiki_page_events"
,
enabledHooks
.
getWikiPageEvents
(),
false
)
.
withParam
(
"enable_ssl_verification"
,
enableSslVerification
,
false
)
.
withParam
(
"repository_update_events"
,
enabledHooks
.
getRepositoryUpdateEvents
(),
false
)
.
withParam
(
"deployment_events"
,
enabledHooks
.
getDeploymentEvents
(),
false
)
.
withParam
(
"token"
,
secretToken
,
false
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"hooks"
);
return
(
response
.
readEntity
(
ProjectHook
.
class
));
...
...
src/test/resources/org/gitlab4j/api/hook.json
View file @
1d48b5c0
...
...
@@ -6,6 +6,7 @@
"push_events_branch_filter"
:
""
,
"issues_events"
:
true
,
"confidential_issues_events"
:
true
,
"deployment_events"
:
true
,
"merge_requests_events"
:
true
,
"tag_push_events"
:
true
,
"note_events"
:
true
,
...
...
@@ -14,4 +15,4 @@
"wiki_page_events"
:
true
,
"enable_ssl_verification"
:
true
,
"created_at"
:
"2012-10-12T17:04:47Z"
}
\ No newline at end of file
}
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