Programatically Access Code Review Comments
I am aware of PLASTICREVIEWCOMMENT and PLASTICREVIEWCOMMENT_ACTION events which seem handy for people who self-host. For us cloud-based folks, though, I don't believe there is any ability to even set up webhooks against these events.
Right now all my devops scripts for tracking code review (mostly to publish changes to our team's discord) make use of 'cm find review ...'. However, I can't figure out any way to access the actual comments associated with a review so the only useful changes I can track are changes in status and assignee.
Could you please add a feature to cm find that tracks code review comments, using the code review id as a foreign key? Then I could at least parse the output of something like cm find review_comment where review_id = 5555555
to determine if new comments can be added and publish those to our team's discord. Or if there is some existing way to accomplish this without using triggers, could you please let me know? (or if there are any plans to actually make triggers available to cloud users, via webhooks or whatever)
Thanks
-
Josh Tomar commented
If it makes sense, I'm open to a proposition like calbzam's (cm find review where id=123 --format={comment}) as well. Feel free to check out my original forum post here for context. https://forum.plasticscm.com/topic/20974-programatically-accessing-code-review-comments/
-
Josh Tomar commented
Don't know why I said "if new comments can be added". I meant "if new comments have been added".