This documentation covers the in-development release of Review Board. You can see the stable Review Board documentation or all previous versions.
This documentation covers the in-development release of Review Board. You can see the stable Review Board documentation or all previous versions.
File Diff Comment List Resource¶
Added in 1.6
Provides information on comments made on a particular per-file diff.
The list of comments cannot be modified from this resource. It’s meant purely as a way to see existing comments that were made on a diff. These comments will span all public reviews.
Details¶
diff_comments
/api/review-requests/{review_request_id}/diffs/{diff_revision}/files/{filediff_id}/diff-comments/
diff_comment
GET - Returns the list of comments on a file in a diff.
File Diff Resource
None
Links¶
Name
Method
Resource
GET
File Diff Comment List Resource
HTTP GET¶
Returns the list of comments on a file in a diff.
This list can be filtered down by using the
?line=
and?interdiff-revision=
.To filter for comments that start on a particular line in the file, using
?line=
.To filter for comments that span revisions of diffs, you can specify the second revision in the range using
?interdiff-revision=
.Request Parameters¶
If specified, a single
count
field is returned with the number of results, instead of the results themselves.The second revision in an interdiff revision range. The comments will be limited to this range.
The line number that each comment must start on.
The maximum number of results to return in this list. By default, this is 25. There is a hard limit of 200; if you need more than 200 results, you will need to make more than one request, using the “next” pagination link.
Comma-separated list of fields to order by.
Added in 1.7.10
The 0-based index of the first result in the list. The start index is usually the previous start index plus the number of previous results. By default, this is 0.
Errors¶
Examples¶
application/vnd.reviewboard.org.file-diff-comments+json¶