Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
42bf4d2b
Commit
42bf4d2b
authored
Sep 25, 2015
by
Grogdunn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: support for webhook ssl_verification in gitlab v8
parent
3bbbaae1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
GitlabAPI.java
src/main/java/org/gitlab/api/GitlabAPI.java
+2
-1
GitlabProjectHook.java
src/main/java/org/gitlab/api/models/GitlabProjectHook.java
+12
-0
No files found.
src/main/java/org/gitlab/api/GitlabAPI.java
View file @
42bf4d2b
...
...
@@ -825,7 +825,7 @@ public class GitlabAPI {
return
dispatch
().
to
(
tailUrl
,
GitlabProjectHook
.
class
);
}
public
GitlabProjectHook
addProjectHook
(
Serializable
projectId
,
String
url
,
boolean
pushEvents
,
boolean
issuesEvents
,
boolean
mergeRequestEvents
)
throws
IOException
{
public
GitlabProjectHook
addProjectHook
(
Serializable
projectId
,
String
url
,
boolean
pushEvents
,
boolean
issuesEvents
,
boolean
mergeRequestEvents
,
boolean
sslVerification
)
throws
IOException
{
String
tailUrl
=
GitlabProject
.
URL
+
"/"
+
sanitizeProjectId
(
projectId
)
+
GitlabProjectHook
.
URL
;
return
dispatch
()
...
...
@@ -833,6 +833,7 @@ public class GitlabAPI {
.
with
(
"push_events"
,
pushEvents
?
"true"
:
"false"
)
.
with
(
"issues_events"
,
issuesEvents
?
"true"
:
"false"
)
.
with
(
"merge_requests_events"
,
mergeRequestEvents
?
"true"
:
"false"
)
.
with
(
"enable_ssl_verification"
,
sslVerification
?
"true"
:
"false"
)
.
to
(
tailUrl
,
GitlabProjectHook
.
class
);
}
...
...
src/main/java/org/gitlab/api/models/GitlabProjectHook.java
View file @
42bf4d2b
...
...
@@ -24,6 +24,9 @@ public class GitlabProjectHook {
@JsonProperty
(
"created_at"
)
private
Date
createdAt
;
@JsonProperty
(
"enable_ssl_verification"
)
private
boolean
sslVerificationEnabled
;
public
String
getId
()
{
return
id
;
}
...
...
@@ -79,4 +82,13 @@ public class GitlabProjectHook {
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
public
boolean
isSslVerificationEnabled
()
{
return
sslVerificationEnabled
;
}
public
void
setSslVerificationEnabled
(
boolean
sslVerificationEnabled
)
{
this
.
sslVerificationEnabled
=
sslVerificationEnabled
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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