I'd like to write a hook that will reply to a comment if the ID is referenced in a commit message. Is this possible?
Community moderators have prevented the ability to post new answers.
Hi Mike,
Have you seen the PullRequestService.addReply() method? Unfortunately you're going to need to also know the pull request that the comment is related to, which would have to mentioned in the commit message as well.
Charles
Awesome! I was able to build my plugin with it. Now to submit a feature request that stash make comment id's more readable... :)
Thanks for the reference!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Charles- one question - do you know hwy the addReply method requires the pull request number? It seems like comment id increases regardless of the pull request it is in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mike,
It's about publishing activity and events. We have two tables - comments and pull request comments. The comment id is global, which is why it increases, but we also add a pull request activity to be visible on the overview.
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.