Commit ae0c0926 authored by Joan Fisbein's avatar Joan Fisbein

Added support for tag_push_events on project hooks

parent 45f63e74
......@@ -1327,7 +1327,7 @@ public class GitlabAPI {
return dispatch().to(tailUrl, GitlabProjectHook.class);
}
public GitlabProjectHook addProjectHook(Serializable projectId, String url, boolean pushEvents, boolean issuesEvents, boolean mergeRequestEvents, boolean sslVerification) throws IOException {
public GitlabProjectHook addProjectHook(Serializable projectId, String url, boolean pushEvents, boolean issuesEvents, boolean mergeRequestEvents, boolean tagPushEvents, boolean sslVerification) throws IOException {
String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabProjectHook.URL;
return dispatch()
......@@ -1335,6 +1335,7 @@ public class GitlabAPI {
.with("push_events", pushEvents ? "true" : "false")
.with("issues_events", issuesEvents ? "true" : "false")
.with("merge_requests_events", mergeRequestEvents ? "true" : "false")
.with("tag_push_events", tagPushEvents ? "true" : "false")
.with("enable_ssl_verification", sslVerification ? "true" : "false")
.to(tailUrl, GitlabProjectHook.class);
}
......
......@@ -23,6 +23,9 @@ public class GitlabProjectHook {
@JsonProperty("merge_requests_events")
private boolean mergeRequestsEvents;
@JsonProperty("tag_push_events")
private boolean tagPushEvents;
@JsonProperty("created_at")
private Date createdAt;
......@@ -77,6 +80,15 @@ public class GitlabProjectHook {
this.mergeRequestsEvents = mergeRequestsEvents;
}
public boolean isTagPushEvents() {
return tagPushEvents;
}
public void setTagPushEvents(boolean tagPushEvents) {
this.tagPushEvents = tagPushEvents;
}
public Date getCreatedAt() {
return createdAt;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment