Helpers for commit hook scripts.
This plugin is tested with Redmine version up to 3.3.1 there is a branch for Redmine 2. If you find [in]compatibilities, please consider contributing a pull request
Redmine offers a web service for repositories. This can be used - for example - to fetch all commits for all repositories. Once your installation grows, this will get horribly inefficient. This plugin provides an extensions to the native web services API to fetch commits for specific repositories only.
Additionally to the parameters mentioned
here,
you can specify a root_url
that is matched against the root URLs of all repositories.
Only the commits for the matching repositories will be fetched then.
Assume you want to fetch the changesets for the repository stored in
/var/repositories/git/administration.test.git
.
Then you simply would do a GET request on
http://<redmine_url>/sys/fetch_changesets?root_url=%2Fvar%2Frepositories%2Fgit%2Ftest.git&key=<WS_key>
.
Ah, now you ask "why a local path?". Because you want to install post-commit hooks on the server like described here.
Just follow the plugin installation procedure at http://www.redmine.org/projects/redmine/wiki/Plugins#Installing-a-plugin.