Jump to content

Programatically Accessing Code Review Comments


Recommended Posts

Hey all,

Been building a fun little tool to keep our small dev team apprised of code review events in on our discord server.  Currently it's able to identify newly created code reviews, changes in status and changes in assignee.  The one remaining function I'd really like to add is the addition of code review comments, but I cannot find any way to access these outside the full PlasticSCM GUI.  Pretty much all the other functionality works using cm find review where ...  Nothing in the "cm find" documentation suggests that looking up review comments is possible, but I'm wondering if anyone here has any ideas or knows anything that I don't.

Also, this is on Plastic Cloud, so server-side triggers are not currently an option as far as I know.

Link to comment
Share on other sites

Because of the one-to-many relationship of a code review to its associated comments, it might be a good idea to make "review_comment" (or something similar) its own object type with review_id acting like a foreign key.  Then it could be queried like:

cm find review_comment where review_id = 5555555

Which would then return each associated comments of that review.  Obviously wouldn't have to be exactly that, but hopefully my intent makes sense.  What would be the proper channel to make this feature request?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...