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
11ab77bb
Commit
11ab77bb
authored
Oct 02, 2015
by
Tim Olshansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75 from Grogdunn/master
support for ssl verification in webhook
parents
3bbbaae1
2341a37b
Changes
2
Show 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 @
11ab77bb
...
...
@@ -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 @
11ab77bb
...
...
@@ -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