@@ -33,116 +33,10 @@ will be returned.
3333
3434Note: Diffs with binary data will have no 'patch' property.
3535
36- ## List commit comments for a repository
37-
38- Commit Comments leverage [ these] ( #custom-mime-types ) custom mime types. You can
39- read more about the use of mime types in the API [ here] ( /v3/mime/ ) .
40-
41- Comments are ordered by ascending ID.
42-
43- GET /repos/:user/:repo/comments
44-
45- ### Response
46-
47- <%= headers 200 %>
48- <%= json(: commit_comment ) { |h| [ h] } %>
49-
50- ## List comments for a single commit
51-
52- GET /repos/:user/:repo/commits/:sha/comments
53-
54- ### Response
55-
56- <%= headers 200 %>
57- <%= json(: commit_comment ) %>
58-
59- ## Create a commit comment
60-
61- POST /repos/:user/:repo/commits/:sha/comments
62-
63- ### Input
64-
65- body
66- : _ Required_ ** string**
67-
68- commit_id
69- : _ Required_ ** string** - Sha of the commit to comment on.
70-
71- line
72- : _ Required_ ** number** - Line number in the file to comment on.
73-
74- path
75- : _ Required_ ** string** - Relative path of the file to comment on.
76-
77- position
78- : _ Required_ ** number** - Line index in the diff to comment on.
79-
80- #### Example
81-
82- <%= json \
83- : body => 'Nice change',
84- : commit_id => '6dcb09b5b57875f334f61aebed695e2e4193db5e',
85- : line => 1,
86- : path => 'file1.txt',
87- : position => 4
88- %>
89-
90- ### Response
91-
92- <%= headers 201, : Location => "https://api.github.com/user/repo/comments/1 " %>
93- <%= json : commit_comment %>
94-
95- ## Get a single commit comment
96-
97- GET /repos/:user/:repo/comments/:id
98-
99- ### Response
100-
101- <%= headers 200 %>
102- <%= json : commit_comment %>
103-
104- ## Update a commit comment
105-
106- PATCH /repos/:user/:repo/comments/:id
107-
108- ### Input
109-
110- body
111- : _ Required_ ** string**
112-
113- #### Example
114-
115- <%= json \
116- : body => 'Nice change'
117- %>
118-
119- ### Response
120-
121- <%= headers 200 %>
122- <%= json : commit_comment %>
123-
12436## Compare two commits
12537
12638 GET /repos/:user/:repo/compare/:base...:head
12739
12840### Response
12941
13042<%= json : commit_comparison %>
131-
132- ## Delete a commit comment
133-
134- DELETE /repos/:user/:repo/comments/:id
135-
136- ### Response
137-
138- <%= headers 204 %>
139-
140- ## Custom Mime Types
141-
142- These are the supported mime types for commit comments. You can read more
143- about the use of mime types in the API [ here] ( /v3/mime/ ) .
144-
145- application/vnd.github-commitcomment.raw+json
146- application/vnd.github-commitcomment.text+json
147- application/vnd.github-commitcomment.html+json
148- application/vnd.github-commitcomment.full+json
0 commit comments