liquid_feedback_frontend
diff env/lf4rcs/notification_handler.lua @ 1219:30523f31b186
Added lf4rcs module and example configuration
author | bsw |
---|---|
date | Mon Nov 30 19:40:38 2015 +0100 (2015-11-30) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/env/lf4rcs/notification_handler.lua Mon Nov 30 19:40:38 2015 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +function lf4rcs.notification_handler(event) 1.5 + if event.event == "issue_state_changed" and ( 1.6 + event.state ~= "admission" and 1.7 + event.state ~= "discussion" and 1.8 + event.state ~= "verification" and 1.9 + event.state ~= "voting" 1.10 + ) then 1.11 + lf4rcs.commit(event.issue) 1.12 + end 1.13 +end 1.14 +