On 08/27/2015 09:53 PM, Øyvind Harboe wrote:
> I would like to color code the new and changed lines in a patchset with
> code-coverage information.
>
> I have that information available from my build scripts in Python, but I
> can't find the REST APIs to do so.
>
> Is there a way to do this or does anyone know of work in progress to add
> this support?
>
No, there is no API specifically to colour code lines in a patch set,
and I don't think anyone is working on such a feature. It sounds
interesting though and would be worth adding to the issue tracker as a
feature request.
In the meantime what you could perhaps do is use the existing review
API, which supports line ranges [1], to post a comment (something like
"no test coverage", I suppose?) onto lines in the patch set.
[1]
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#comment-input