hook for repository changes

Added by Alex Shemshurenko over 4 years ago

Im running Redmine 2.5.2.stable.43403 on Ubuntu 14.04.
Ive configured it to monitor repository.
Whenever developer commits code with number of issue and keyword, issue is automatically updated with proper Status.
I want to add functionality that will reassign issue to the specific user whenever its status changes.
For example if Issue status changes to Fixed, i want issue to be reassigned back to the user that opened the issue in the first place.
Normally i would add hook for controller_issues_edit_after_save and do all the work there.
But when issue is updated because of repository commit, controller_issues_edit_after_save never gets called.
How should i approach such task?