Commit c06f4cd42ff7a45ba89d6f951d1287b15c11b54a

Authored by Jeroen van Baarsen
1 parent 564c37d9

JSON Lint the web-hooks.md file

Thanks to @jojosch for the initial work on the web-hooks.html.haml file!
Showing 1 changed file with 41 additions and 42 deletions   Show diff stats
doc/web_hooks/web_hooks.md
@@ -25,7 +25,7 @@ Triggered when you push to the repository except pushing tags. @@ -25,7 +25,7 @@ Triggered when you push to the repository except pushing tags.
25 "name": "Diaspora", 25 "name": "Diaspora",
26 "url": "git@localhost:diaspora.git", 26 "url": "git@localhost:diaspora.git",
27 "description": "", 27 "description": "",
28 - "homepage": "http://localhost/diaspora", 28 + "homepage": "http://localhost/diaspora"
29 }, 29 },
30 "commits": [ 30 "commits": [
31 { 31 {
@@ -35,10 +35,9 @@ Triggered when you push to the repository except pushing tags. @@ -35,10 +35,9 @@ Triggered when you push to the repository except pushing tags.
35 "url": "http://localhost/diaspora/commits/b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327", 35 "url": "http://localhost/diaspora/commits/b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
36 "author": { 36 "author": {
37 "name": "Jordi Mallach", 37 "name": "Jordi Mallach",
38 - "email": "jordi@softcatala.org", 38 + "email": "jordi@softcatala.org"
39 } 39 }
40 }, 40 },
41 - // ...  
42 { 41 {
43 "id": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", 42 "id": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
44 "message": "fixed readme", 43 "message": "fixed readme",
@@ -46,12 +45,12 @@ Triggered when you push to the repository except pushing tags. @@ -46,12 +45,12 @@ Triggered when you push to the repository except pushing tags.
46 "url": "http://localhost/diaspora/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7", 45 "url": "http://localhost/diaspora/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
47 "author": { 46 "author": {
48 "name": "GitLab dev user", 47 "name": "GitLab dev user",
49 - "email": "gitlabdev@dv6700.(none)",  
50 - },  
51 - }, 48 + "email": "gitlabdev@dv6700.(none)"
  49 + }
  50 + }
52 ], 51 ],
53 - "total_commits_count": 4,  
54 -}; 52 + "total_commits_count": 4
  53 +}
55 ``` 54 ```
56 55
57 #### Issues events 56 #### Issues events
@@ -62,21 +61,21 @@ Triggered when a new issue is created or an existing issue was updated/closed/re @@ -62,21 +61,21 @@ Triggered when a new issue is created or an existing issue was updated/closed/re
62 61
63 ```json 62 ```json
64 { 63 {
65 - "object_kind":"issue",  
66 - "object_attributes":{  
67 - "id":301,  
68 - "title":"New API: create/update/delete file",  
69 - "assignee_id":51,  
70 - "author_id":51,  
71 - "project_id":14,  
72 - "created_at":"2013-12-03T17:15:43Z",  
73 - "updated_at":"2013-12-03T17:15:43Z",  
74 - "position":0,  
75 - "branch_name":null,  
76 - "description":"Create new API for manipulations with repository",  
77 - "milestone_id":null,  
78 - "state":"opened",  
79 - "iid":23 64 + "object_kind": "issue",
  65 + "object_attributes": {
  66 + "id": 301,
  67 + "title": "New API: create/update/delete file",
  68 + "assignee_id": 51,
  69 + "author_id": 51,
  70 + "project_id": 14,
  71 + "created_at": "2013-12-03T17:15:43Z",
  72 + "updated_at": "2013-12-03T17:15:43Z",
  73 + "position": 0,
  74 + "branch_name": null,
  75 + "description": "Create new API for manipulations with repository",
  76 + "milestone_id": null,
  77 + "state": "opened",
  78 + "iid": 23
80 } 79 }
81 } 80 }
82 ``` 81 ```
@@ -89,25 +88,25 @@ Triggered when a new merge request is created or an existing merge request was u @@ -89,25 +88,25 @@ Triggered when a new merge request is created or an existing merge request was u
89 88
90 ```json 89 ```json
91 { 90 {
92 - "object_kind":"merge_request",  
93 - "object_attributes":{  
94 - "id":99,  
95 - "target_branch":"master",  
96 - "source_branch":"ms-viewport",  
97 - "source_project_id":14,  
98 - "author_id":51,  
99 - "assignee_id":6,  
100 - "title":"MS-Viewport",  
101 - "created_at":"2013-12-03T17:23:34Z",  
102 - "updated_at":"2013-12-03T17:23:34Z",  
103 - "st_commits":null,  
104 - "st_diffs":null,  
105 - "milestone_id":null,  
106 - "state":"opened",  
107 - "merge_status":"unchecked",  
108 - "target_project_id":14,  
109 - "iid":1,  
110 - "description":"" 91 + "object_kind": "merge_request",
  92 + "object_attributes": {
  93 + "id": 99,
  94 + "target_branch": "master",
  95 + "source_branch": "ms-viewport",
  96 + "source_project_id": 14,
  97 + "author_id": 51,
  98 + "assignee_id": 6,
  99 + "title": "MS-Viewport",
  100 + "created_at": "2013-12-03T17:23:34Z",
  101 + "updated_at": "2013-12-03T17:23:34Z",
  102 + "st_commits": null,
  103 + "st_diffs": null,
  104 + "milestone_id": null,
  105 + "state": "opened",
  106 + "merge_status": "unchecked",
  107 + "target_project_id": 14,
  108 + "iid": 1,
  109 + "description": ""
111 } 110 }
112 } 111 }
113 ``` 112 ```