Skip to content

Commit 8b1d986

Browse files
committed
Initial commit (#177).
1 parent 13d358e commit 8b1d986

File tree

2 files changed

+148
-0
lines changed

2 files changed

+148
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
package org.gitlab4j.api.models;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlRootElement;
7+
8+
import org.gitlab4j.api.Constants.ActionType;
9+
10+
@XmlRootElement
11+
@XmlAccessorType(XmlAccessType.FIELD)
12+
public class PushData {
13+
14+
private Integer commit_count;
15+
private ActionType action;
16+
private String refType;
17+
private String commitFrom;
18+
private String commitTo;
19+
private String ref;
20+
21+
public Integer getCommit_count() {
22+
return commit_count;
23+
}
24+
25+
public void setCommit_count(Integer commit_count) {
26+
this.commit_count = commit_count;
27+
}
28+
29+
public ActionType getAction() {
30+
return action;
31+
}
32+
33+
public void setAction(ActionType action) {
34+
this.action = action;
35+
}
36+
37+
public String getRefType() {
38+
return refType;
39+
}
40+
41+
public void setRefType(String refType) {
42+
this.refType = refType;
43+
}
44+
45+
public String getCommitFrom() {
46+
return commitFrom;
47+
}
48+
49+
public void setCommitFrom(String commitFrom) {
50+
this.commitFrom = commitFrom;
51+
}
52+
53+
public String getCommitTo() {
54+
return commitTo;
55+
}
56+
57+
public void setCommitTo(String commitTo) {
58+
this.commitTo = commitTo;
59+
}
60+
61+
public String getRef() {
62+
return ref;
63+
}
64+
65+
public void setRef(String ref) {
66+
this.ref = ref;
67+
}
68+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[
2+
{
3+
"project_id": 1,
4+
"action_name": "commented on",
5+
"target_id": 2343,
6+
"target_iid": 2343,
7+
"target_type": "Note",
8+
"author_id": 2,
9+
"target_title": "Testing MR accept.",
10+
"created_at": "2018-04-24T02:14:38.298Z",
11+
"note": {
12+
"id": 2343,
13+
"body": "This is a note.",
14+
"author": {
15+
"id": 2,
16+
"name": "John Doe",
17+
"username": "jdoe",
18+
"state": "active",
19+
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
20+
"web_url": "http://gitlab/jdoe"
21+
},
22+
"created_at": "2018-04-24T02:14:37.966Z",
23+
"updated_at": "2018-04-24T02:14:37.966Z",
24+
"system": false,
25+
"noteable_type": "Commit"
26+
},
27+
"author": {
28+
"id": 2,
29+
"name": "John Doe",
30+
"username": "jdoe",
31+
"state": "active",
32+
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
33+
"web_url": "http://gitlab/jdoe"
34+
},
35+
"author_username": "jdoe"
36+
},
37+
{
38+
"project_id": 1,
39+
"action_name": "deleted",
40+
"author_id": 2,
41+
"created_at": "2018-04-24T02:04:21.299Z",
42+
"author": {
43+
"id": 2,
44+
"name": "John Doe",
45+
"username": "jdoe",
46+
"state": "active",
47+
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
48+
"web_url": "http://gitlab/jdoe"
49+
},
50+
"push_data": {
51+
"commit_count": 0,
52+
"action": "removed",
53+
"ref_type": "branch",
54+
"commit_from": "87b4484e307fa2b6df839d8864f2eb7e79b70dd1",
55+
"ref": "feature/protect_branch"
56+
},
57+
"author_username": "jdoe"
58+
},
59+
{
60+
"project_id": 1,
61+
"action_name": "pushed new",
62+
"author_id": 2,
63+
"created_at": "2018-04-24T02:04:20.121Z",
64+
"author": {
65+
"id": 2,
66+
"name": "John Doe",
67+
"username": "jdoe",
68+
"state": "active",
69+
"avatar_url": "https://www.gravatar.com/avatar/12123rthwt89745423u5h3kj465483589?s=80&d=identicon",
70+
"web_url": "http://gitlab/jdoe"
71+
},
72+
"push_data": {
73+
"commit_count": 0,
74+
"action": "created",
75+
"ref_type": "branch",
76+
"commit_to": "87b4484e307fa2b6df839d8864f2eb7e79b70dd1"
77+
},
78+
"author_username": "jdoe"
79+
}
80+
]

0 commit comments

Comments
 (0)