Commit 8b1d9863 authored by Greg Messner's avatar Greg Messner
Browse files

Initial commit (#177).

parent 13d358ee
package org.gitlab4j.api.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import org.gitlab4j.api.Constants.ActionType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PushData {
private Integer commit_count;
private ActionType action;
private String refType;
private String commitFrom;
private String commitTo;
private String ref;
public Integer getCommit_count() {
return commit_count;
}
public void setCommit_count(Integer commit_count) {
this.commit_count = commit_count;
}
public ActionType getAction() {
return action;
}
public void setAction(ActionType action) {
this.action = action;
}
public String getRefType() {
return refType;
}
public void setRefType(String refType) {
this.refType = refType;
}
public String getCommitFrom() {
return commitFrom;
}
public void setCommitFrom(String commitFrom) {
this.commitFrom = commitFrom;
}
public String getCommitTo() {
return commitTo;
}
public void setCommitTo(String commitTo) {
this.commitTo = commitTo;
}
public String getRef() {
return ref;
}
public void setRef(String ref) {
this.ref = ref;
}
}
[
{
"project_id": 1,
"action_name": "commented on",
"target_id": 2343,
"target_iid": 2343,
"target_type": "Note",
"author_id": 2,
"target_title": "Testing MR accept.",
"created_at": "2018-04-24T02:14:38.298Z",
"note": {
"id": 2343,
"body": "This is a note.",
"author": {
"id": 2,
"name": "John Doe",
"username": "jdoe",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
"web_url": "http://gitlab/jdoe"
},
"created_at": "2018-04-24T02:14:37.966Z",
"updated_at": "2018-04-24T02:14:37.966Z",
"system": false,
"noteable_type": "Commit"
},
"author": {
"id": 2,
"name": "John Doe",
"username": "jdoe",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
"web_url": "http://gitlab/jdoe"
},
"author_username": "jdoe"
},
{
"project_id": 1,
"action_name": "deleted",
"author_id": 2,
"created_at": "2018-04-24T02:04:21.299Z",
"author": {
"id": 2,
"name": "John Doe",
"username": "jdoe",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
"web_url": "http://gitlab/jdoe"
},
"push_data": {
"commit_count": 0,
"action": "removed",
"ref_type": "branch",
"commit_from": "87b4484e307fa2b6df839d8864f2eb7e79b70dd1",
"ref": "feature/protect_branch"
},
"author_username": "jdoe"
},
{
"project_id": 1,
"action_name": "pushed new",
"author_id": 2,
"created_at": "2018-04-24T02:04:20.121Z",
"author": {
"id": 2,
"name": "John Doe",
"username": "jdoe",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
"web_url": "http://gitlab/jdoe"
},
"push_data": {
"commit_count": 0,
"action": "created",
"ref_type": "branch",
"commit_to": "87b4484e307fa2b6df839d8864f2eb7e79b70dd1"
},
"author_username": "jdoe"
}
]
Supports Markdown
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