Unverified Commit a7de94cf authored by Ganesh Datta's avatar Ganesh Datta Committed by GitHub
Browse files

Update commit API to be conformant to spec (#556)

parent ede2903d
Showing with 24 additions and 4 deletions
+24 -4
......@@ -25,6 +25,7 @@ public class Commit {
private Date timestamp;
private String title;
private String url;
private String webUrl;
private Pipeline lastPipeline;
public Author getAuthor() {
......@@ -163,6 +164,14 @@ public class Commit {
this.url = url;
}
public String getwebUrl() {
return webUrl;
}
public void setwebUrl(String webUrl) {
this.webUrl = webUrl;
}
public Pipeline getLastPipeline() {
return lastPipeline;
}
......
......@@ -18,5 +18,7 @@
"deletions": 10,
"total": 25
},
"status": "running"
"status": "running",
"url": "http://localhost/diaspora/diaspora-project-site/-/commit/9df4dd1f0dfae80c05eac4b2bd461b86db5c8e2d",
"web_url": "http://localhost/diaspora/diaspora-project-site/-/commit/9df4dd1f0dfae80c05eac4b2bd461b86db5c8e2d"
}
{
"title": "this is a title",
"project_id": 15,
"action_name": "opened",
"action_name": "pushed",
"target_id": 830,
"target_type": "Issue",
"target_type": "MergeRequest",
"author_id": 1,
"author": {
"name": "Dmitriy Zaporozhets",
......@@ -40,5 +40,14 @@
],
"total_commits_count": 1
},
"target_title": "target title"
"push_data": {
"commit_count": 1,
"action": "pushed",
"ref_type": "branch",
"commit_from": "50d4420237a9de7be1304607147aec22e4a14af7",
"commit_to": "c5feabde2d8cd023215af4d2ceeb7a64839fc428",
"ref": "master",
"commit_title": "Add simple search to projects in public area"
},
"target_title": "target title"
}
\ No newline at end of file
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