Page 1 of 1

Create changeset entry using REST API

Posted: 27 Apr 2021, 10:01
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

Re: Create changeset entry using REST API

Posted: 28 Apr 2021, 08:20
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).