Create changeset entry using REST API

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
twwwt
Posts: 3
Joined: 08 Sep 2016, 15:46

Create changeset entry using REST API

Post by twwwt »

Hi all

We are using a kind of home-grown SVN Mantis integration, meaning that we have defined a SVN commit hook using which we create a new note for some issue if the commit message mentions a Mantis issue. The creation is is done using the Mantis' REST API. We know that there exists the SCM integration plugin for Mantis. As far as I understand it, this plugin works by polling changes from a SVN (or Git) repository. However, we would rather like to stick with our push-style interaction approach. I have checked Mantis' REST API documentation whether there is an endpoint for creating changesets in Mantis. Since I couldn't find such an endpoint, questions are (i) is it possible to create a changeset using Mantis' REST API and (ii) if this is not the case, is it planned to extend the REST API in this direction?

Thanks
obmsch
Posts: 22
Joined: 26 Mar 2013, 22:19

Re: Create changeset entry using REST API

Post by obmsch »

I doubt the REST API will be extended for that in the foreseeable future, if ever. But it's possible to 'push' changes with your post-commit
hook to Mantis (source integration plugin), using a POST to the checkin page (https://github.com/mantisbt-plugins/sou ... urceSVN.md).
Post Reply